tags:

views:

108

answers:

1

I know AttributeUsage class. This class can set only property or method or class ...etc I need custom attribute that is only acitve on method and method must return int value. If any function return string value, this attribute will don't work. Only work on int value.

Is there any like this attribute?

How can i create?

Is it possible?

+1  A: 

This can only be determined at run time unfortunately. If you want to receive notification that some usage of this attribute is violating this constraint, you may want to make use of a post build action.

BlueSam