Home > DeveloperSection > Interviews > What Are Attributes in DotNet?

Posted on    May-12-2012 3:31 AM

 C# C# 
 1 Answer(s)
  2299  View(s)
Rate this:

Arun Singh

Total Post:310

Posted on    May-12-2012 12:00 AM

An Attribute is a declarative tag which can be used to provide information to the compiler about the behaviour of the C# elements such as classes and assemblies.
C# provides convenient technique that will handle tasks such as performing compile time operations , changing the behavior of a method at runtime or maybe even handle UN-managed code.
C# Provides many Built-in Attributes

Some Popular ones are

- Obsolete
- DllImport
- Conditional
- WebMethod

Don't want to miss updates? Please click the below button!

Follow MindStick