SignatureHelper Class

Provides methods for building signatures.

System.Object
  System.Reflection.Emit.SignatureHelper

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

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

The SignatureHelper type exposes the following members.

  NameDescription
Public methodAddArgument(Type)Adds an argument to the signature.
Public methodAddArgument(Type, Boolean)Adds an argument of the specified type to the signature, specifying whether the argument is pinned.
Public methodAddArgument(Type, Type[], Type[])Adds an argument to the signature, with the specified custom modifiers.
Public methodAddArgumentsAdds a set of arguments to the signature, with the specified custom modifiers.
Public methodAddSentinelMarks the end of a vararg fixed part. This is only used if the caller is creating a vararg signature call site.
Public methodEqualsChecks if this instance is equal to the given object. (Overrides Object.Equals(Object).)
Public methodStatic memberGetFieldSigHelperReturns a signature helper for a field.
Public methodGetHashCodeCreates and returns a hash code for this instance. (Overrides Object.GetHashCode().)
Public methodStatic memberGetLocalVarSigHelper()Returns a signature helper for a local variable.
Public methodStatic memberGetLocalVarSigHelper(Module)Returns a signature helper for a local variable.
Public methodStatic memberGetMethodSigHelper(CallingConvention, Type)Returns a signature helper for a method given the method's unmanaged calling convention and return type.
Public methodStatic memberGetMethodSigHelper(CallingConventions, Type)Returns a signature helper for a method given the method's calling convention and return type.
Public methodStatic memberGetMethodSigHelper(Module, CallingConventions, Type)Returns a signature helper for a method given the method's module, calling convention, and return type.
Public methodStatic memberGetMethodSigHelper(Module, CallingConvention, Type)Returns a signature helper for a method given the method's module, unmanaged calling convention, and return type.
Public methodStatic memberGetMethodSigHelper(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.
Public methodStatic memberGetPropertySigHelper(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.
Public methodStatic memberGetPropertySigHelper(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.
Public methodStatic memberGetPropertySigHelper(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.
Public methodGetSignatureAdds the end token to the signature and marks the signature as finished, so no further tokens can be added.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string representing the signature arguments. (Overrides Object.ToString().)
Top

  NameDescription
Explicit interface implemetationPrivate method_SignatureHelper.GetIDsOfNamesMaps a set of names to a corresponding set of dispatch identifiers.
Explicit interface implemetationPrivate method_SignatureHelper.GetTypeInfoRetrieves the type information for an object, which can then be used to get the type information for an interface.
Explicit interface implemetationPrivate method_SignatureHelper.GetTypeInfoCountRetrieves the number of type information interfaces that an object provides (either 0 or 1).
Explicit interface implemetationPrivate method_SignatureHelper.InvokeProvides access to properties and methods exposed by an object.
Top

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.

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

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone 8, Silverlight 8.1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft