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 filters in web api?

0 Answers  


Hello frnds, Actually i am plannig to put fake Xperince letter is it good or not, and please suggest me from where we take it.

1 Answers  


What is NonActionAttribute ?

0 Answers   Cognizant,


Give an example for authorization filters in an asp.net mvc application?

0 Answers  


What is the use .glimpse in mvc?

0 Answers  






What is the difference between viewbag and viewdata in asp.net mvc?

0 Answers  


How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?

0 Answers   MCN Solutions,


What does CLR do after the IL is generated and machine language is generated .Will it look for main method ?

1 Answers   BWT, MMTS, UIU,


What is the use of trace utility ?

2 Answers  


What is the mvc pattern (model view controller pattern)?

0 Answers  


Explain the methods used to render the views in mvc?

0 Answers  


And if they have conflicting method names ?

1 Answers  


Categories