.NET 2.0. Decorate a property with attribute for a class that's in the same assembly
I've a class with several properties, of which some are mandatory.
The consuming class will take action depending on whether properties are mandatory.
If property 'InvoiceNumber' is mandatory then
It seems that doing this in .NET 2.0, this is fairly convoluted. See this article:
It involves loading an assembly and then use reflection. This doesn't make sense, i.e. loading an assembly, if the class that I'm examining resides in the same assembly!
Any advice appreciated.
Chr Yoker, Oct 26, 2010