C# Class Platform.Invoke.DefaultMethodCallWrapper

Provides a default implementation for method call wrappers.
Inheritance: IMethodCallWrapper
Mostra file Open project: GeirGrusom/PlatformInvoker

Public Methods

Method Description
GenerateInvocation ( TypeBuilder owner, Type interfaceType, MethodInfo overrideMethod, IEnumerable fieldBuilders ) : MethodBuilder

Creates a MethodBuilder and implements a default wrapper.

Protected Methods

Method Description
OnInvokeBegin ( TypeBuilder type, Type interfaceType, ILGenerator generator, MethodInfo interfaceMethod ) : void

Called to implement pre-invoke functionality.

OnInvokeEnd ( TypeBuilder type, Type interfaceType, ILGenerator generator, MethodInfo interfaceMethod ) : void

Called to implement post-invoke functionality.

Method Details

GenerateInvocation() public method

Creates a MethodBuilder and implements a default wrapper.
public GenerateInvocation ( TypeBuilder owner, Type interfaceType, MethodInfo overrideMethod, IEnumerable fieldBuilders ) : MethodBuilder
owner System.Reflection.Emit.TypeBuilder The type that will own this method.
interfaceType System.Type Type of interface implemented by the .
overrideMethod System.Reflection.MethodInfo Method to override.
fieldBuilders IEnumerable Fields specified by the .
return System.Reflection.Emit.MethodBuilder

OnInvokeBegin() protected method

Called to implement pre-invoke functionality.
protected OnInvokeBegin ( TypeBuilder type, Type interfaceType, ILGenerator generator, MethodInfo interfaceMethod ) : void
type System.Reflection.Emit.TypeBuilder
interfaceType System.Type
generator System.Reflection.Emit.ILGenerator
interfaceMethod System.Reflection.MethodInfo
return void

OnInvokeEnd() protected method

Called to implement post-invoke functionality.
protected OnInvokeEnd ( TypeBuilder type, Type interfaceType, ILGenerator generator, MethodInfo interfaceMethod ) : void
type System.Reflection.Emit.TypeBuilder
interfaceType System.Type
generator System.Reflection.Emit.ILGenerator
interfaceMethod System.Reflection.MethodInfo
return void