using System; namespace Operation { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false)] class SubMenuMapping : Attribute { public string name { get; set; } public int order { get; set; } public SubMenuMapping(string name, int order = 1) { this.name = name; this.order = order; } } }