Hi. In a custom attribute, is there any way for me to discover the
type/member to which the attribute is applied during attribute construction?
For example:
public enum MyEnum
{
[MyCustomAttribute()]
MyField,
...
}
public MyCustomAttribute : Attribute
{
public MyCustomAttribute()
{
// here I would like to discover the type to which
// the attribute is being applied
// e.g. in this example MyEnum.MyField
}
}
Many thanks
kh