System.Reflection.Emit.SignatureHelper.GetMethodSigHelper Method

Returns a signature helper for a method with a standard calling convention, given the method's module, return type, and argument types.

Syntax

public static SignatureHelper GetMethodSigHelper (System.Reflection.Module mod, Type returnType, Type[] parameterTypes)

Parameters

mod
The System.Reflection.Emit.ModuleBuilder that contains the method for which the SignatureHelper is requested.
returnType
The return type of the method, or null for a void return type (Sub procedure in Visual Basic).
parameterTypes
The types of the arguments of the method, or null if the method has no arguments.

Returns

The SignatureHelper object for a method.

Remarks

This overload creates a signature with a standard calling convention.

To create a method signature with custom modifiers, use the SignatureHelper.GetMethodSigHelper(System.Reflection.Module, System.Reflection.CallingConventions, Type) method overload and then use the SignatureHelper.AddArgument(Type, Type[], Type[]) or SignatureHelper.AddArguments(Type[], Type[][], Type[][]) method overloads to add arguments with custom modifiers.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0