What are attributes

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention the core components of .net framework?

572


What is route config?

555


How we can invoke child actions in ASP.Net MVC?

574


Will there be a .net compact framework 3.0 release with release of .net framework 3.0?

538


What is the benefit of entity framework?

533






What is objectset? : Entity framework

546


What are the components required to create a route in mvc?

603


How route table is created in ASP.NET MVC?

593


Which filter executes first in an asp.net mvc application?

551


How does servicing work for the .net framework 3.0?

536


What is action methods in web api?

525


What is the use .glimpse in mvc?

593


I want ask from plz smaple example code for Biztalkk server

1710


What is stateless model?

510


What is the difference between renderaction and renderpartial?

615