You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The VerbAttribute constructor has the option to pass in string[] aliases, however attribute constructors should accept constants when used as attributes and, last I checked, arrays can't be constants.
I suggest using a params keyword.
The text was updated successfully, but these errors were encountered:
The types of positional and named parameters for an attribute class are limited to the attribute parameter types, which are:
One of the following types: bool, byte, char, double, float, int, long, sbyte, short, string, uint, ulong, ushort.
The type object.
The type System.Type.
Enum types.
Single-dimensional arrays of the above types.
A constructor argument or public field that does not have one of these types, shall not be used as a positional or named parameter in an attribute specification.
Please also close this issue. (Aside from the repro/project maintainers, you as the issue creator have the ability to close it.)
The
VerbAttribute
constructor has the option to pass instring[] aliases
, however attribute constructors should accept constants when used as attributes and, last I checked, arrays can't be constants.I suggest using a
params
keyword.The text was updated successfully, but these errors were encountered: