Quantcast
Viewing latest article 12
Browse Latest Browse All 73

C#: Using Reflection and Custom Attributes to Map Object Properties

Image may be NSFW.
Clik here to view.

I have a general distaste for decorating my code with Attributes and Annotations. Most of the time, I can't help but feel like there must be a better way to accomplish what I am trying to do, and/or that I have somewhere sprung a leak in what should be a helpful abstraction. Other times, though, custom attributes can be just the tool for the job, and sometimes, the only practical way to solve a problem.

Image may be NSFW.
Clik here to view.


Viewing latest article 12
Browse Latest Browse All 73

Trending Articles