#GenericAttribute
In C#, if you want to pass the type to an attribute, you can use the 'typeof' expression.
However, there is no way to constrain what types are allowed to be passed.
C# 11 allows generic attributes.
@fullStackDevs
In C#, if you want to pass the type to an attribute, you can use the 'typeof' expression.
However, there is no way to constrain what types are allowed to be passed.
C# 11 allows generic attributes.
@fullStackDevs
👍10🔥2