I have a property which has an attribute applied to it. How can i access the attribute from inside the property getter or setter?
class Person {
[ID("A","B")]
public Address HomeAddress
{
get
{
// Get values A and B here ?
}
set { }
}
}
Really no idea how to go about this.
Regards
Ps.: I’m not using Visual Studio right now, just wrote directly here. Sorry if you find any minor error.
Give a look at this MSDN article.