SignatureHelper.GetMethodSigHelper Method (Module, Type, Type[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

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

Parameters

mod
Type: System.Reflection.Module

The ModuleBuilder that contains the method for which the SignatureHelper is requested.

returnType
Type: System.Type

The return type of the method, or null for a void return type (Sub procedure in Visual Basic).

parameterTypes
Type: System.Type[]

The types of the arguments of the method, or null if the method has no arguments.

Return Value

Type: System.Reflection.Emit.SignatureHelper

The SignatureHelper object for a method.

Exception Condition
ArgumentNullException

mod is null.

-or-

An element of parameterTypes is null.

ArgumentException

mod is not a ModuleBuilder.

This overload creates a signature with a standard calling convention.

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

.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 8.0
Return to top
Show: