using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FObjBase.Reflect { /// /// 注册 event 返回类型; /// 客户端,默认使用 Trigger_xxxx(xxxx为event名称),作为触发事件的函数,该函数的参数类型就是EventArgsType; /// public class PushAttribute : Attribute { public Type EventArgsType; public string TriggerName; public PushAttribute(Type eventArgsType) { EventArgsType = eventArgsType; } public PushAttribute(Type eventArgsType, string triggerName) { EventArgsType = eventArgsType; TriggerName = triggerName; } } /// /// 注册远程调用返回类型 /// public class CallAttribute : Attribute { public Type ReponseType; public CallAttribute() { } public CallAttribute(Type reponseType) { ReponseType = reponseType; } } /// /// 注册 它的PropertyChanged 事件,且枚举它的子属性, /// 找到[PropertyPush] 递归 注册下去 /// public class PropertyPushAttribute : Attribute { } }