In C#, can an attribute be applied to a static class, method or property?

Posted by ray247 on Stack Overflow See other posts from Stack Overflow or by ray247
Published on 2010-06-16T05:32:30Z Indexed on 2010/06/16 5:42 UTC
Read the original article Hit count: 218

Filed under:
|
|

Hi there,

I was just wondering if an attribute can be applied to a static class, method or property in c#? Like,

[MyAttribute]
public static MyMethods(string str) ...

Thanks Ray.

© Stack Overflow or respective owner

Related posts about c#

Related posts about static