BindingFlags _SEARCH_BINDINGFLAGS = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | ClearEventHandler( targetObj, Type targetType = EventInfo eventInfo = (eventInfo == ) ArgumentException( Delegate[] eventInvocationList = (Delegate handler Delegate[] GetEventInvocationList( targetObj, FieldInfo eventFieldInfo = GetEventField(targetObj.GetType(), eventName, (eventFieldInfo != eventFieldValue = (eventFieldValue } PropertyInfo propertyInfo = targetObj.GetType().GetProperty( (propertyInfo != EventHandlerList eventHandlerList = propertyInfo.GetValue(targetObj, ) (eventHandlerList != Delegate eventHanlder = (eventHanlder != FieldInfo GetEventField(Type target, eventName, FieldInfo eventInfo = (inherited && eventInfo == (target.BaseType != (target.BaseType == eventInfo = GetEventField(target.BaseType, + eventName, eventInfo = GetEventField(target.BaseType, eventName, EventInfo GetEvent(Type target, }
PS:該Demo存在很大的缺憾,僅供參考,還請高人指點一二以協助小弟進行改善以及完善。