[244] An attribute argument must be a constant, typeof expression, or array creation expression

I just ran across a few instances in which ReSharper is tagging EditorBrowsableState.Never as an invalid attribute argument. The code example is as follows:


public enum InternalState
{
None = 0,
Something = 1,
SomethingElse = 2
}

The EditorBrowsable attribute is used on several classes, methods, and enumerations in the project, and ReSharper is flagging an invalid attribute argument only on the attributes for enumerations.

1 comment
Comment actions Permalink

Hello Lothan,

I can't repeat this problem in the latest build. Are there any other errors
in the file where you observe this? Could you please post here a screenshot?
Thanks.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I just ran across a few instances in which ReSharper is tagging
EditorBrowsableState.Never as an invalid attribute argument. The code
example is as follows:


public enum InternalState
{
None = 0,
Something = 1,
SomethingElse = 2
}
The EditorBrowsable attribute is used on several classes, methods, and
enumerations in the project, and ReSharper is flagging an invalid
attribute argument only on the attributes for enumerations.



0

Please sign in to leave a comment.