using System; namespace ET { /// /// 添加该标记的类或结构体禁止使用new关键字构造对象 /// [AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct,Inherited = true)] public class DisableNewAttribute : Attribute { } }