c# - What's the simplest most elegant way to utilize a custom attribute -


So little confession, I have never written a specialty class. I think they are decorating with flags or extra functionality The purpose of the service is probably done.

Does anyone give me a quick example of not just creating one attribute and applying it in a class, but rather using a feature from any other block code code of code that I have ever known Kind of used to use the qualities, was doing this with reflection, although I always hope that there is a way to use them without reflection.

Features are used with always reflections during compiled time Types are cooked in metadata and the only way to read them is through reflection when you want to type in a type and if you want to add some metadata with it, then this kind of can be used by consumers.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -