K
KK
Hi,
I apply a custom Attribute to several properties
in a class. There are about 15 of those. I want
to know how I can programatically get ONLY those
properties that I have applied my attribute.
What I want is rather than calling those 15 attributes
like;
Object.Prop1
Object.Prop2
Object.Prop3 etc..
Is there a way to call it using reflection
foreach (Property that implements MyCustomAttribute){
object.Call Property that implements attribute
}
Thanks
KK
I apply a custom Attribute to several properties
in a class. There are about 15 of those. I want
to know how I can programatically get ONLY those
properties that I have applied my attribute.
What I want is rather than calling those 15 attributes
like;
Object.Prop1
Object.Prop2
Object.Prop3 etc..
Is there a way to call it using reflection
foreach (Property that implements MyCustomAttribute){
object.Call Property that implements attribute
}
Thanks
KK