[MyCustomClassAttribute]
public class Foo
{
}
public class Bar<T>
where T : ??
{
public T FooInstance;
}
I'm pretty sure this is impossible, but just thought I'd check. Any way to make it so that T has to have a [MyCustomClassAttribute]
on it?
I am afraid this is impossible. Here's a list of all the possible generic constraints you could use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With