C# 11 allows generic types to inherit from Attribute, so we should take advantage of that. The [DataConverter] and [Check.Complex] attributes both currently take a type argument, and that can change to be a generic type argument. We can even use a where clause to perform a compile-time check that the type implements the desired interface; that would remove the need for 2 unit tests.
C# 11 allows generic types to inherit from
Attribute
, so we should take advantage of that. The[DataConverter]
and[Check.Complex]
attributes both currently take a type argument, and that can change to be a generic type argument. We can even use awhere
clause to perform a compile-time check that the type implements the desired interface; that would remove the need for 2 unit tests.Not urgent, just QOL.