Property | Type | Description | |
---|---|---|---|
targetInstance |
Method | Description | |
---|---|---|
BuildProxyType ( ) : |
Creates a proxy that delegates calls to an instance of the target object. Only interfaces can be proxied using composition, so the target must implement one or more interfaces. |
|
CompositionProxyTypeBuilder ( ) : System |
Creates a new instance of the CompositionProxyTypeBuilder class.
|
|
PushTarget ( |
Generates the IL instructions that pushes the target instance on which calls should be delegated to.
|
Method | Description | |
---|---|---|
CreateTargetProxyMethodBuilder ( |
Create an IProxyMethodBuilder to create interface implementations
|
|
DeclareTargetInstanceField ( |
Deaclares a field that holds the target object instance.
|
|
GenerateConstructor ( |
Generates the proxy constructor. This implementation creates instance of the target object for delegation using constructor arguments. |
|
ImplementCustom ( |
Allows subclasses to generate additional code
|
public CompositionProxyTypeBuilder ( ) : System | ||
return | System |
protected CreateTargetProxyMethodBuilder ( |
||
typeBuilder | ||
return | IProxyMethodBuilder |
protected DeclareTargetInstanceField ( |
||
builder |
/// The |
|
return | void |
protected GenerateConstructor ( |
||
builder | The constructor builder to use. | |
il | The IL generator to use. | |
constructor | The constructor to delegate the creation to. | |
return | void |
protected ImplementCustom ( |
||
builder | ||
return | void |
public PushTarget ( |
||
il | The IL generator to use. | |
return | void |