An Attribute is a declarative tag which can be used to provide information to the compiler about the behaviour of the C# elements such as classes and assemblies. C# provides convenient technique that will handle tasks such as performing compile time operations , changing the behavior of a method at runtime or maybe even handle UN-managed code. C# Provides many Built-in Attributes Some Popular ones are - Obsolete - DllImport - Conditional - WebMethod
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
C# provides convenient technique that will handle tasks such as performing compile time operations , changing the behavior of a method at runtime or maybe even handle UN-managed code.
C# Provides many Built-in Attributes
Some Popular ones are
- Obsolete
- DllImport
- Conditional
- WebMethod