Export (0) Print
Expand All

SignatureHelper Class

Provides methods for building signatures.

System.Object
  System.Reflection.Emit.SignatureHelper

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

'Declaration
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<ComVisibleAttribute(True)> _
Public NotInheritable Class SignatureHelper

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).)
Protected methodFinalizeAllows 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 memberGetFieldSigHelperReturns a signature helper for a field.
Public methodGetHashCodeCreates and returns a hash code for this instance. (Overrides Object.GetHashCode.)
Public methodStatic memberGetLocalVarSigHelperReturns 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 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.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string representing the signature arguments. (Overrides Object.ToString.)
Top

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.

Silverlight

Supported in: 5, 4, 3

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

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

Community Additions

ADD
Show:
© 2014 Microsoft