I am designing a custom attribute class.
public class MyAttr: Attribute { public ValueRange ValRange { get; set; } }
Then I am attempti
Attribute parameter values need to be resolvable at compile time (i.e constants).
See Attribute Parameter Types on MSDN:
Values passed to attributes must be known to the compiler at compile time.
If you can create a ValueRange that is a constant, you can use it.
ValueRange