c# - Make sure attribute is used with static methods only -


is there way tell attribute work when used static methods?

attributeusage class not seem allow such specyfic usage.

[attributeusage(attributetargets.method,                 inherited = false, allowmultiple = false)] 

no, there no way restrict this. - use reflection @ run-time enforce this.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -