This causes a compile-time exception:
public sealed class ValidatesAttribute<T> : Attribute
public static class StringValidation
I realize C# does not support generic attributes. However, after much Googling, I can't seem to find the reason.
Does anyone know why generic types cannot derive from
Attribute ? Any theories?