Class LocalVariablesSignature
- Namespace
- AsmResolver.DotNet.Signatures
- Assembly
- AsmResolver.DotNet.dll
Represents a blob signature containing a list of variable types for a CIL method body.
public class LocalVariablesSignature : CallingConventionSignature, IImportable
- Inheritance
-
LocalVariablesSignature
- Implements
- Inherited Members
Constructors
LocalVariablesSignature()
Creates a new empty local variables signature.
public LocalVariablesSignature()
LocalVariablesSignature(params TypeSignature[])
Creates a new local variables signature with the provided variable types.
public LocalVariablesSignature(params TypeSignature[] variableTypes)
Parameters
variableTypes
TypeSignature[]The types of the variables.
LocalVariablesSignature(IEnumerable<TypeSignature>)
Creates a new local variables signature with the provided variable types.
public LocalVariablesSignature(IEnumerable<TypeSignature> variableTypes)
Parameters
variableTypes
IEnumerable<TypeSignature>The types of the variables.
Properties
VariableTypes
Gets a collection representing the variable types of a CIL method body.
public IList<TypeSignature> VariableTypes { get; }
Property Value
Methods
FromReader(ref BlobReaderContext, ref BinaryStreamReader)
Reads a single local variables signature from the provided input stream.
public static LocalVariablesSignature FromReader(ref BlobReaderContext context, ref BinaryStreamReader reader)
Parameters
context
BlobReaderContextThe blob reader context.
reader
BinaryStreamReaderThe input stream.
Returns
- LocalVariablesSignature
The signature.
ImportWith(ReferenceImporter)
Imports the local variables signature using the provided reference importer object.
public LocalVariablesSignature ImportWith(ReferenceImporter importer)
Parameters
importer
ReferenceImporterThe reference importer to us.
Returns
- LocalVariablesSignature
The imported signature.
ImportWithInternal(ReferenceImporter)
Imports the signature using the provided reference importer object.
protected override CallingConventionSignature ImportWithInternal(ReferenceImporter importer)
Parameters
importer
ReferenceImporterThe reference importer to us.
Returns
- CallingConventionSignature
The imported signature.
IsImportedInModule(ModuleDefinition)
Determines whether the descriptor of the member is fully imported in the provided module.
public override bool IsImportedInModule(ModuleDefinition module)
Parameters
module
ModuleDefinitionThe module that is supposed to import the member.
Returns
- bool
true
if the descriptor of the member is fully imported by the module,false
otherwise.
Remarks
This method verifies all references in the descriptor of the member only. It does not verify any additional data or contents (such as a method body) associated to the member.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteContents(in BlobSerializationContext)
Serializes the blob (without extra data) to an output stream.
protected override void WriteContents(in BlobSerializationContext context)
Parameters
context
BlobSerializationContext