If you have been using the C# language for a while now, and you are using the built-in attributes (e.g.
[Serializable], [Obsolete]) but you haven’t deeply thought about it. Thus, in this post, we’re going to explore the basics of attributes, what are the common ones, how to create and read attributes. What’s exciting is you will see how to get the built-in attributes using
System.Reflection. OK, then let’s get started.