[C# Tip] How to create and access custom C# Attributes by using Reflection
code4it.dev·21h·
Discuss: r/programming
🧩Web Components
Preview
Report Post

** Just a second! 🫷** If you are here, it means that you are a software developer. So, you know that storage, networking, and domain management have a cost .

If you want to support this blog, please ensure that you have disabled the adblocker for this site. I configured Google AdSense to show as few ADS as possible - I don’t want to bother you with lots of ads, but I still need to add some to pay for the resources for my site.

Thank you for your understanding.

  • Davide

A good, simple way to decorate and attach metadata to your classes is to create custom Attributes.

But, obviously, just creating them may not be enough: you may also want to access them at runtime.

In this article, we will see how to create custom Attributes in C# and access them at runtime. …

Similar Posts

Loading similar posts...