What are attributes



What are attributes..

Answer / kirti

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 be

pre- and/or post-processed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

What is routeconfig.cs in mvc 4?

0 Answers  


mention in what all scenarios entity framework can be applicable?

0 Answers   Microsoft,


Can you declare an override method to be static if the original method is non-static

1 Answers  


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

0 Answers  


What are class access modifiers

1 Answers  


What is Area in ASP.Net MVC?

0 Answers  


How does the .net framework 3.0 relate to windows vista?

0 Answers  


what is deferred loading(lazy loading)?

0 Answers   Microsoft,


What is the use of web api ? Why web api needed, if you have already restful services using wcf ?

0 Answers  


What is "out" parameter how it is used in methods?

6 Answers   Polaris,


Integer & struct are value types or reference types in .NET?

3 Answers  


how do you query in entity model when the result has a join from from different database other than the entity model?

0 Answers   Microsoft,


Categories