AddStaticEventHandler

Method

Adds eventHandler to the static event named eventName on the targetType type. Equivalent to targetType.eventName += eventHandler;

Definition

void AddStaticEventHandler(Type targetType, string eventName, Delegate eventHandler)
void AddStaticEventHandler(Type targetType, string eventName, Delegate eventHandler)

Parameters

ParameterDescription
Type targetType
string eventName
Delegate eventHandler