I am wondering if it is possible to validate parameters to (custom) .net attributes. eg: If I had an attribute that takes a positive integer, could I force a compile time error when a negative value was supplied?
[DonkeyAttribute(1)] //OK
[DonkeyAttribute(-828)] //error
In this example I could use an unsigned integer (but that is non cls compliant I beleive?) Recommendations?