Microsoft .Net Framework Interview questions and answers FAQ's, .Net 2.0, .Net 3.0, .Net 3.5, WPF - WCF, C#.NET, ASP.Net, VB.Net,ADO.Net, Web & desktop development questions.
Wednesday, September 9, 2009
What are attributes?
There are at least two types of .NET attribute. The first type I will refer to as a metadata attribute - it allows some data to be attached to a class or method. This data becomes part of the metadata for the class, and (like other class metadata) can be accessed via reflection.The other type of attribute is a context attribute. Context attributes use a similar syntax to metadata attributes but they are fundamentally different. Context attributes provide an interception mechanism whereby instance activation and method calls can bepre- and/or post-processed.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment