/// <summary> /// 获取指定类型中所有成员特性信息 /// </summary> /// <param name="type">指定的类型</param> /// <returns></returns> public static Attribute[] GainMembersAttributes(Type type) { return(ReflectionHelper.AddOrGetTypesInfosDictionary(type)?.MembersAttributes ?? EmptyArrays.Attribute); }
/// <summary> /// 增强的Object /// 默认初始化时自动生成Guid /// 开启只有在属性变化时执行 OnlyExecuteOnPropertyChanged = true /// 开启属性变化抓取 GrabChangedProperties = true /// 不开启属性变化值抓取 GrabChangedPropertiesValues = false /// 不开启属性变化前值抓取 GrabChangedPropertiesPreviewValues = false /// 开启属性变化前事件触发 EnabledEventBeforePropertySet = true /// 开启属性变化后事件触发 EnabledEventExtPropertyChanged = true /// 不开启自动通知界面 EnabledNotify = false /// </summary> public ExtendObject() { ReflectionHelper.AddOrGetTypesInfosDictionary(this.GetType()); }