Is it possible to restrict a generic type to a class that implements a particular attribute?
If I have an attribute called MyCustomAttribute... I want to write something like this:
public class SomeRandomClass<T>
where T : MyCustomAttribute
{
}
but not where T is a derived class of MyCustomAttribute, but a class that implements the attribute.
Thanks
edit:
I mean implemented like this:
[MyCustomAttribute]
public class SomeOtherClass
{
}