8 posts about Attributes in C# by 8 contributors.
Know Attributes in C#? Share what you know with developers who are learning it.
Reflection in C# allows examining and manipulating types, methods, and other members at runtime. Attributes provide metadata to annotate code elements, aiding in customization and dynamic behavior. Together, they enable powerful and flexible programming paradigms.
In this article, we’re going to explore the basics of attributes, what are the common ones, how to create and read attributes
Attributes are like adjectives, which are used for metadata annotation that can be applied to a given type, assembly, module, method and so on. The .NET framework stipulates two types of attribute implementations, which are Predefined Attributes and Custom Attributes.
Caller Information attributes are newly introduced in Framework 4.0. There are three attributes which are more helpful in tracing, debugging and diagnosis the application.
In this article we will learn about attributes in C#. Attributes are used to associate some important instruction or information regarding methods, properties or types.
In this series we will see the usage of “Attribute” with the help of some examples and creation of our own custom attributes to be used in a sample use case.
This article shows how to create custom attribute classes, use them in code, and query them.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article