MvvmBlazor icon indicating copy to clipboard operation
MvvmBlazor copied to clipboard

Remove constructor for generated components

Open klemmchr opened this issue 1 year ago • 2 comments

Description

The default protected constructor prevents the usage of the component generator as described in #117. It should be removed from the code generator.

Code sample

No response

klemmchr avatar Sep 26 '22 17:09 klemmchr

Not sure if you want to expand the scope of this issue or create a new one, but the same should be done for protected virtual void Dispose(bool disposing). When inheriting from InputBase<T>, for example, we receive warning CS0114: 'MyComponent.Dispose(bool)' hides inherited member 'InputBase<string>.Dispose(bool)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword..

pm64 avatar Oct 09 '22 01:10 pm64

@pm64 I would include that issue in here as well.

klemmchr avatar Oct 09 '22 11:10 klemmchr