using System; namespace IFramework { /// /// 环境初始化时候调用被标记的静态类 /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] public class OnEnvironmentInitAttribute : Attribute { /// /// 配合初始化的版本 0, /// 默认初始化,其他自行规定,用于区分环境, /// 一般某个环境特有的静态类和环境编号一致 /// public EnvironmentType type { get; } /// /// Ctor /// /// public OnEnvironmentInitAttribute(EnvironmentType type = EnvironmentType.None) { this.type = type; } } }