Mega Code Archive

 
Categories / C# Tutorial / Attribute
 

Attribute with supplement information

using System; [AttributeUsage(AttributeTargets.All)]  public class MyAttribute : Attribute {    string remark;     public string supplement;     public MyAttribute(string comment) {      remark = comment;      supplement = "None";    }    }