SignatureHelper Class

 

Provides methods for building signatures.

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

System.Object
  System.Reflection.Emit.SignatureHelper

[<Sealed>]
[<ClassInterfaceAttribute(ClassInterfaceType.None)>]
[<ComVisibleAttribute(true)>]
type SignatureHelper = 
    class
        interface _SignatureHelper
    end

NameDescription
System_CAPS_pubmethodAddArgument(Type)

Adds an argument to the signature.

System_CAPS_pubmethodAddArgument(Type, Boolean)

Adds an argument of the specified type to the signature, specifying whether the argument is pinned.

System_CAPS_pubmethodAddArgument(Type, Type[], Type[])

Adds an argument to the signature, with the specified custom modifiers.

System_CAPS_pubmethodAddArguments(Type[], Type[][], Type[][])

Adds a set of arguments to the signature, with the specified custom modifiers.

System_CAPS_pubmethodAddSentinel()

Marks the end of a vararg fixed part. This is only used if the caller is creating a vararg signature call site.

System_CAPS_pubmethodEquals(Object)

Checks if this instance is equal to the given object.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodSystem_CAPS_staticGetFieldSigHelper(Module)

Returns a signature helper for a field.

System_CAPS_pubmethodGetHashCode()

Creates and returns a hash code for this instance.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodSystem_CAPS_staticGetLocalVarSigHelper()

Returns a signature helper for a local variable.

System_CAPS_pubmethodSystem_CAPS_staticGetLocalVarSigHelper(Module)

Returns a signature helper for a local variable.

System_CAPS_pubmethodSystem_CAPS_staticGetMethodSigHelper(CallingConvention, Type)

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

System_CAPS_pubmethodSystem_CAPS_staticGetMethodSigHelper(CallingConventions, Type)

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

System_CAPS_pubmethodSystem_CAPS_staticGetMethodSigHelper(Module, CallingConvention, Type)

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

System_CAPS_pubmethodSystem_CAPS_staticGetMethodSigHelper(Module, CallingConventions, Type)

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

System_CAPS_pubmethodSystem_CAPS_staticGetMethodSigHelper(Module, Type, Type[])

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

System_CAPS_pubmethodSystem_CAPS_staticGetPropertySigHelper(Module, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][])

Returns a signature helper for a property, given the dynamic module that contains the property, the calling convention, the property type, the property arguments, and custom modifiers for the return type and arguments.

System_CAPS_pubmethodSystem_CAPS_staticGetPropertySigHelper(Module, Type, Type[])

Returns a signature helper for a property, given the dynamic module that contains the property, the property type, and the property arguments.

System_CAPS_pubmethodSystem_CAPS_staticGetPropertySigHelper(Module, Type, Type[], Type[], Type[], Type[][], Type[][])

Returns a signature helper for a property, given the dynamic module that contains the property, the property type, the property arguments, and custom modifiers for the return type and arguments.

System_CAPS_pubmethodGetSignature()

Adds the end token to the signature and marks the signature as finished, so no further tokens can be added.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string representing the signature arguments.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethod_SignatureHelper.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Maps a set of names to a corresponding set of dispatch identifiers.

System_CAPS_pubinterfaceSystem_CAPS_privmethod_SignatureHelper.GetTypeInfo(UInt32, UInt32, IntPtr)

Retrieves the type information for an object, which can then be used to get the type information for an interface.

System_CAPS_pubinterfaceSystem_CAPS_privmethod_SignatureHelper.GetTypeInfoCount(UInt32)

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

System_CAPS_pubinterfaceSystem_CAPS_privmethod_SignatureHelper.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Provides access to properties and methods exposed by an object.

Use the SignatureHelper class to create a signature blob that can be passed to the SetLocalSignature method of the DynamicILInfo class. A SignatureHelper object can also be passed to the ILGenerator.Emit(OpCode, SignatureHelper) method overload to insert an instruction and a signature token into a Microsoft intermediate language (MSIL) stream. For information on signature blobs and signature metadata, see the ECMA Partition II Metadata documentation.

System_CAPS_noteNote

The ECMA Partition II documentation is available online; see ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

.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

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: