Пример #1
0
 public EventMember(EventInfo eventInfo)
     : base(eventInfo)
 {
     this.EventHandlerType   = eventInfo.EventHandlerType !.TypeHandle.GetTypeMember();
     this.AddEventHandler    = eventInfo.AddMethod !.MethodHandle.GetMethodMember(this.Type.Handle);
     this.RaiseEvent         = eventInfo.RaiseMethod?.MethodHandle.GetMethodMember(this.Type.Handle);
     this.RemoveEventHandler = eventInfo.RemoveMethod !.MethodHandle.GetMethodMember(this.Type.Handle);
 }