How do you Read the value of an attribute in a Method

Posted by Coppermill on Stack Overflow See other posts from Stack Overflow or by Coppermill
Published on 2010-03-22T14:52:37Z Indexed on 2010/03/22 15:11 UTC
Read the original article Hit count: 225

Filed under:
|
|
|
|

I need to be able to read the value of my attribute from within my Method, how can I do it?

[MyAttribute("Hello World")]
public int MyMethod()
{
    //Need to read the MyAttribute attribute and get its value
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET