What does where T : somevalue mean? I just saw some code that said where T : Attribute. I think this has something to do with generics but I am not sur
where T : somevalue
where T : Attribute
It's a way of restricting the type used as generic arguments. So:
where T : SomeType
Means that T must either derive from SomeType or implement the interface SomeType