SignatureHelper Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides methods for building signatures.

Inheritance Hierarchy

System.Object
  System.Reflection.Emit.SignatureHelper

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

Syntax

'Declaration
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<ComVisibleAttribute(True)> _
Public NotInheritable Class SignatureHelper
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[ComVisibleAttribute(true)]
public sealed class SignatureHelper

The SignatureHelper type exposes the following members.

Methods

  Name Description
Public method AddArgument(Type) Adds an argument to the signature.
Public method AddArgument(Type, Boolean) Adds an argument of the specified type to the signature, specifying whether the argument is pinned.
Public method AddArgument(Type, array<Type[], array<Type[]) Adds an argument to the signature, with the specified custom modifiers.
Public method AddArguments Adds a set of arguments to the signature, with the specified custom modifiers.
Public method AddSentinel Marks the end of a vararg fixed part. This is only used if the caller is creating a vararg signature call site.
Public method Equals Checks if this instance is equal to the given object. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member GetFieldSigHelper Returns a signature helper for a field.
Public method GetHashCode Creates and returns a hash code for this instance. (Overrides Object.GetHashCode().)
Public methodStatic member GetLocalVarSigHelper() Returns a signature helper for a local variable.
Public methodStatic member GetLocalVarSigHelper(Module) Returns a signature helper for a local variable.
Public methodStatic member GetMethodSigHelper(CallingConvention, Type) Returns a signature helper for a method given the method's unmanaged calling convention and return type.
Public methodStatic member GetMethodSigHelper(CallingConventions, Type) Returns a signature helper for a method given the method's calling convention and return type.
Public methodStatic member GetMethodSigHelper(Module, CallingConventions, Type) Returns a signature helper for a method given the method's module, calling convention, and return type.
Public methodStatic member GetMethodSigHelper(Module, CallingConvention, Type) Returns a signature helper for a method given the method's module, unmanaged calling convention, and return type.
Public methodStatic member GetMethodSigHelper(Module, Type, array<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 member GetPropertySigHelper(Module, Type, array<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 member GetPropertySigHelper(Module, Type, array<Type[], array<Type[], array<Type[], array<array<Type[][], array<array<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 method GetSignature Adds the end token to the signature and marks the signature as finished, so no further tokens can be added.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string representing the signature arguments. (Overrides Object.ToString().)

Top

Remarks

Use the SignatureHelper class to create a signature blob that can be inserted into a Microsoft intermediate language (MSIL) stream. For information on signature blobs and signature metadata, see the online ECMA Partition II documentation.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

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