37 for (
int i = 0; i < parametersNoCopy.Length; i++)
39 Type parameterType = parametersNoCopy[i].ParameterType;
85 if (addMethod ==
null)
89 addMethod.
Invoke(target,
new object[1] { handler });
97 if (removeMethod ==
null)
101 removeMethod.
Invoke(target,
new object[1] { handler });
106 return base.Equals(
obj);
111 return base.GetHashCode();
117 if ((
object)right ==
null)
119 if ((
object)left !=
null)
125 if ((
object)left == right)
129 return left?.
Equals(right) ??
false;
134 return !(left == right);
static Exception ByDesign
MethodInfo? GetAddMethod()
static bool operator==(EventInfo? left, EventInfo? right)
MethodInfo? GetRemoveMethod(bool nonPublic)
virtual void AddEventHandler(object? target, Delegate? handler)
virtual ? MethodInfo RaiseMethod
override bool Equals(object? obj)
static bool operator!=(EventInfo? left, EventInfo? right)
MethodInfo? GetRaiseMethod()
override int GetHashCode()
MethodInfo[] GetOtherMethods()
MethodInfo? GetAddMethod(bool nonPublic)
MethodInfo? GetRaiseMethod(bool nonPublic)
EventAttributes Attributes
virtual ? Type EventHandlerType
virtual ? MethodInfo RemoveMethod
MethodInfo? GetRemoveMethod()
override MemberTypes MemberType
virtual void RemoveEventHandler(object? target, Delegate? handler)
virtual MethodInfo[] GetOtherMethods(bool nonPublic)
virtual ? MethodInfo AddMethod
object? Invoke(object? obj, object?[]? parameters)
virtual ParameterInfo[] GetParametersNoCopy()
static string InvalidOperation_NoPublicAddMethod
static string InvalidOperation_NoPublicRemoveMethod
virtual bool IsAssignableFrom([NotNullWhen(true)] Type? c)
virtual bool IsSubclassOf(Type c)