ArgumentValue
ArgumentValue
UDA is used to list all values that an argument can accept. This is very useful in the cases when an argument must have a value from a specific list, for example, when argument type is enum
.
Signature
ArgumentValue(string[] values...)
Parameters
values
Values that argument can have.
Usage example
enum Fruit {
apple,
@ArgumentValue("no-apple","noapple")
noapple
};
Last modified: 09 November 2024