using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Serein.Library { /// /// 标识一个类中的某些字段需要生成相应代码 /// [AttributeUsage(AttributeTargets.Class, Inherited = true)] public sealed class AutoPropertyAttribute : Attribute { /// /// 属性路径 /// CustomNode : 自定义节点 /// public string ValuePath = string.Empty; } /// /// 自动生成环境的属性 /// [AttributeUsage(AttributeTargets.Field, Inherited = true)] public sealed class PropertyInfoAttribute : Attribute { /// /// 是否通知UI /// public bool IsNotification = false; /// /// 是否使用Console.WriteLine打印 /// public bool IsPrint = false; /// /// 是否禁止参数进行修改(初始化后不能再通过setter修改) /// public bool IsProtection = false; } }