Attributes in C sharp Arabic #51
Suggested Videos
❑ The purpose of attributes.
❑ Using an attributes.
❑ Customizing attribute using parameters.
Attributes
Attributes allow you to add declarative information to your programs . This information Can then be queried at runtime using reflection.
There are several Pre-defined Attributes provided by .NET.it is also possible to create your own Custom Attributes.
A few Pre-defined attributes with in the .NET framework:
Obsolete –Marks types and type members outdated/
WebMethod –To expose a method as an XML Web service Method.
Serializable –Indicates that a class can be serialized.
It is possible to customize the attribute using parameters.
An attribute is a class that inherits System. Attribute base class.
Tags:
C sharp