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

Explain the tools used for unit testing in ASP.Net MVC

600


What is connected scenario? : Entity framework

549


What is the difference between partial and renderpartial?

494


Can you explain renderbody and renderpage in asp.net mvc?

555


In which assembly is the mvc framework defined?

549






Is entity framework slow?

524


What is ViewStart Page in ASP.Net MVC?

575


What are the advantages of asp.net mvc?

561


What is the .net framework 3.0 (formerly winfx)?

554


Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?

506


What is viewbag?

614


What is .net framework & its benefits?

521


What is separation of concerns in asp.net mvc?

598


Explain the new features added in version 4 of mvc (mvc4)?

540


What is .net framwork?

562