using System; [AttributeUsage(AttributeTargets.All)] public class MyAttribute : Attribute { string remark; public MyAttribute(string comment) { remark = comment; } public string Remark { get { return remark; } } }