M
Mihajlo Cvetanović
With Attribute.GetCustomAttribute() I can obtain the attribute if I have
the field. How can I achieve the opposite, how can I obtain the field
from within the attribute? I want to check the field type in MyAttribute
constructor, and throw exception if attribute and filed mismatch.
Something like more detailed AttributeUsage functionality.
the field. How can I achieve the opposite, how can I obtain the field
from within the attribute? I want to check the field type in MyAttribute
constructor, and throw exception if attribute and filed mismatch.
Something like more detailed AttributeUsage functionality.