No, you cannot use generic type constraints to limit the type parameters by what attributes they are decorated with. You can only use generic type constraints to limit type parameters by:
- What base the type parameter inherits
- What interfaces the type parameter implements
- What constructors the type parameter provides
- Whether the type parameter is a value type or a reference type
Further Reading: