MvvmBlazor
MvvmBlazor copied to clipboard
Remove constructor for generated components
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
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 I would include that issue in here as well.