C# Class Platform.Invoke.DelegateTypeBuilder

Inheritance: IDelegateTypeBuilder
Show file Open project: GeirGrusom/PlatformInvoker

Private Methods

Method Description
CopyParameterAttributes ( ParameterBuilder builder, ParameterInfo parameter ) : void

Copies parameter attributes. This is used to copy marshalling attributes and other relevant data.

CreateDelegateType ( MethodInfo method, ModuleBuilder module ) : Type
FixMarshalTypeAttributes ( IList namedArguments ) : IEnumerable

Fixes MarshalType attributes to overcome an issue where the TypeRef will look for the specified custom marshalling in the dynamic assembly.

ProcessReturnParameterAttributes ( MethodInfo method, MethodBuilder invokeMethod ) : void

Copies return type attributes to the new type.