I\'m using a custom attribute inherited from an attribute class. I\'m using it like this:
[MyCustomAttribute(\"CONTROL\")]
[MyCustomAttribute(\"ALT\")]
[MyCustom
AttributeUsageAttribute ;-p
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class MyAttribute : Attribute
{}
Note, however, that if you are using ComponentModel (TypeDescriptor
), it only supports one attribute instance (per attribute type) per member; raw reflection supports any number...