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 viewbag?

1 Answers  


Which is the default http method for an action method?

1 Answers  


What is ado.net data provider? : Entity framework

1 Answers  


Explain entity lifecycle? : Entity framework

1 Answers  


Where does web.config info stored? Will this be stored in the registry ?

1 Answers   Accenture, BirlaSoft,


Is .net framework backwards compatible?

1 Answers  


What is the difference between windows vista and .net framework 3.0 ?

1 Answers  


What are Code Blocks in Views?

1 Answers  


Do I need microsoft .net framework?

1 Answers  


Explain how to use multiple submit buttons in ASP.Net MVC?

1 Answers  


Can we have more than 1 partial classes in the same file?

3 Answers   Encora,


If background completes its processing will it wait for foreground threads?

2 Answers   Kanbay,


Categories