Skip to content
Concord

Class ReversePatchFactory

Namespace
Concord.Emit
Assembly
Concord.Emit.dll

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

original MethodBase

The original method to clone.

delegateType Type

The 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.