System.Reflection.Emit.DynamicILInfo.SetLocalSignature Method

Sets the local variable signature that describes the layout of local variables for the associated dynamic method.

Syntax

[System.CLSCompliant(false)]
public void SetLocalSignature (byte* localSignature, int signatureSize)

Parameters

localSignature
An array that contains the layout of local variables for the associated System.Reflection.Emit.DynamicMethod.
signatureSize
The number of bytes in the signature.

Remarks

The local variable signature describes the layout of a method's local variables. To simplify construction of the local variable signature, use the static (Shared in Visual Basic) SignatureHelper.GetLocalVarSigHelper(System.Reflection.Module) method to get a System.Reflection.Emit.SignatureHelper for the local signature.

For information on local variable signatures, see the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics". The documentation is available online; see tp://go.microsoft.com/fwlink/?LinkID=99212 on MSDN and tp://go.microsoft.com/fwlink/?LinkID=65552 on the Ecma International Web site.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0