Why attributes are used in c#?



Why attributes are used in c#?..

Answer / Vishwanath Chakravarty

Attributes in C# are used to decorate classes, structures, fields, methods and parameters with additional information that can be read at runtime or compile-time. They help in metadata creation for code analysis, documentation purposes and custom attributes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How to add controls dynamically to the form using c#.net.

1 Answers  


What is dapper in c#?

1 Answers  


Are classes passed by reference in c#?

1 Answers  


What is desktop application testing?

1 Answers  


Is c# good for web development?

1 Answers  


give an example for suspending, resuming, and stopping a thread ?

1 Answers   GCI,


What does char mean in c#?

1 Answers  


What is _viewstart cshtml?

1 Answers  


what is .NET framework architecture ??

1 Answers   IIT, Impetus,


If dll and exe files are same it means you can deploy both the files in gac?

1 Answers  


Explain the top reason to use c# language?

1 Answers  


Is it true that all c# types derive from a common base class?

1 Answers  


Categories