Santosh Kumar  Kotnala
what are attributes in .NET ?
By Santosh Kumar Kotnala in ASP.NET on Jan 31 2011
  • sarika jain
    Feb, 2011 9

    An attribute is a declarative tag that  is used to convey information to runtime about the behaviour of programmatic elements such as classes,enumerators and assemblies.

    A declarative tag is represented by square brackets [] above the definition of the elements that is it can be above the class or it  can be above the method .

    For example:
    [attribute(positional parameters,named parameters)]
    Here, in the above example positional parameters are essential information of an attribute whereas name parameters are the optional information of an attribute.

    • 0
  • Manish Dwivedi
    Feb, 2011 1

    Attributes provide a powerful method of associating metadata, or declarative information, with code (assemblies, types, methods, properties, and so forth). After an attribute is associated with a program entity, the attribute can be queried at run time by using a technique called reflection.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS