Hello,
I have a classes called BillingActivity, DevelopmentActivity, ResearchActivity all implementing IActivity.
Somewhere in my app I enumerate a dll containing all types. Check wether typeof(IActivity).IsAssignable(type) if so I want to get string typeDescription = type.Attribute.Value or similar what I want is to put a attribute on a class OR on the above classes (depends what suggestions you make or what solutions are possible) like
[ActivityType = "Billing"].
public class BillingActivity {}
I do not want to get a instance of that type I just want to get the description(attribute `s value).
How can I do that? Can someone push me in the right direction please?