Hi,
I created custom attribute collection. How can I declare that attribute in
front of the class and how to extract contents of that attribute collection.
[AttributeUsage(AttributeTargets.All)]
public class RoleAttribute : Attribute {
public RoleAttribute(string[] pRString){
this.pRString = pRString;
private string[] pRString;Quote:}
public string[] RString {
get {
return pRString;
For example, when I had custom attribute without collection I would declareQuote:}
}
it before some class as following:
[Role("Supervisor")]
or
[Role("Manager")]
Thank you,
Victor