Can C# Attributes access the Target Class?
- by Heka
I want to access the properties of a class from the attribute class by using reflection. Is it possible?
For example:
class MyAttribute : Attribute
{
private void AccessTargetClass()
{
// Do some operations
}
}
[MyAttribute]
class TargetClass
{
}