Web Devs
641 subscribers
218 photos
22 videos
17 files
233 links
Articles, News, Jokes, Quotes, Back-End and UI/UX for web developers.
Github : https://github.com/fullStackDevsGroup
Advertising: @adsfullStackDevs
Download Telegram
#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
👍10🔥2