Interview Questions

What are Attributes?

.NET Interview Questions and Answers


(Continued from previous question...)

31. What are Attributes?

Attributes are declarative tags in code that insert additional metadata into an assembly. There exist two types of attributes in the .NET Framework: Predefined attributes such as AssemblyVersion, which already exist and are accessed through the Runtime Classes; and custom attributes, which you write yourself by extending the System.Attribute class.

(Continued on next question...)

Other Interview Questions