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

Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?

737


Is .net framework dead?

722


What is meant by viewdata?

728


Explain Keep method in Tempdata in ASP.Net MVC?

771


What is edm designer? : Entity framework

749


What are the levels at which filters can be applied in an asp.net mvc application?

780


Explain test driven development (tdd) ?

744


What is separation of concerns in asp.net mvc?

791


how do you mark a property as required? For example, for a project, the name is a required field.

794


When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

753


What is entityset? : Entity framework

755


In razor syntax, what is the escape sequence character for @ symbol?

744


What is conceptual model? : Entity framework

702


What is razor code?

811


How does work clr?

703