What are attributes C#?

In C#, attributes are classes that inherit from the Attribute base class . Any class that inherits from Attribute can be used as a sort of “tag” on other pieces of code. For instance, there is an attribute called ObsoleteAttribute . This is used to signal that code is obsolete and shouldn’t be used anymore.

Sizin İçin Seçtik  Halk oyunları nelerdir?

Leave a Reply

Your email address will not be published. Required fields are marked *