SignatureHelper.GetMethodSigHelper Method (CallingConvention, Type)

 

Returns a signature helper for a method given the method's unmanaged calling convention and return type.

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

public static SignatureHelper GetMethodSigHelper(
	CallingConvention unmanagedCallingConvention,
	Type returnType
)

Parameters

unmanagedCallingConvention
Type: System.Runtime.InteropServices.CallingConvention

The unmanaged calling convention of the method.

returnType
Type: System.Type

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

Return Value

Type: System.Reflection.Emit.SignatureHelper

The SignatureHelper object for a method.

Exception Condition
ArgumentException

unmanagedCallConv is an unknown unmanaged calling convention.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show: