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

what is explicit loading?

729


When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?

813


What is ViewData and TempData in ASP.Net MVC?

665


What symbol would you use to denote, the start of a code block in razor views?

647


Define the core components of an ASP.NET MVC application?

654






What is the difference between .net core and .net framework?

578


Explain RenderBody and RenderPage in ASP.Net MVC?

685


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

667


What are the 3 segments of the default route, that is present in an ASP.NET MVC application?

678


How we can handle the exception at controller level in ASP.Net MVC?

667


What is rxjava used for?

750


Where are the routing rules defined in an asp.net mvc application?

632


Is dapper faster than entity framework?

616


What is the difference between viewbag and viewdata in mvc?

614


What is the benefit of entity framework?

625