'<name>' cannot be named as a parameter in an attribute specifier because it is not a field or property
An attribute block sets a value for a nonvariable member of the attribute. You can assign values only to variable members such as fields or properties.
Error ID: BC32010
Ensure that the attribute and member names are spelled correctly.
Remove the argument from the attribute block if the member is nonvariable.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: