using System; namespace Operation { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false)] class MenuMapping : Attribute { public string Name; public string Icon; public int Order; public int Pcode; public Type refc; public MenuMapping(string name = "", string icon = "", int order = 1, PermissionCode permission = PermissionCode.SYSTEM_DEFAULT, Type refc = null) { this.Icon = icon; this.Name = name; this.Order = order; this.Pcode = (int)permission; this.refc = refc; } } }