CreateDelegateFromMethod

Example: CreateDelegateFromMethodAlphabetical List of Functions

Creates a delegate of the specified type that represents a static or instance method.

Delegate CreateDelegateFromMethod(Type delegateType, Type type, object targetObject, string name, int metadataToken);

This function returns a delegate of the specified type that represents the specified static or instance method.

delegateTypeThe type of delegate to create.
typeThe type that contains the method.
targetObjectThe object to which the delegate is bound, or a null reference to treat the method as static.
nameThe name of the method.
metadataTokenThe metadataToken of the method.

Note: Do not add this function manually to a script. It is generated by VuGen automatically.

Parameterization

Parameterization is not applicable to this function.