Class ReversePatchFactory
Binds delegates that call original target method bodies directly.
public static class ReversePatchFactory
- Inheritance
-
ReversePatchFactory
- Inherited Members
Methods
Bind(MethodBase, Type)
Creates a delegate for a copy of an original method body.
public static Delegate Bind(MethodBase original, Type delegateType)
Parameters
originalMethodBaseThe original method to clone.
delegateTypeTypeThe delegate type to create. For instance methods, the instance is represented by the first delegate parameter.
Returns
- Delegate
A delegate that invokes the cloned original body and bypasses patched wrappers.