有没有办法告诉属性仅在与静态方法一起使用时才起作用?
AttributeUsage
类似乎不允许这种特定的用法。
[AttributeUsage(AttributeTargets.Method,
Inherited = false, AllowMultiple = false)]
有没有办法告诉属性仅在与静态方法一起使用时才起作用?
AttributeUsage
类似乎不允许这种特定的用法。
[AttributeUsage(AttributeTargets.Method,
Inherited = false, AllowMultiple = false)]