Table of Contents

Class FindTypeDecoder

Namespace
ICSharpCode.Decompiler.Metadata
Assembly
ICSharpCode.Decompiler.dll
public class FindTypeDecoder : ISignatureTypeProvider<bool, Unit>, ISimpleTypeProvider<bool>, IConstructedTypeProvider<bool>, ISZArrayTypeProvider<bool>
Inheritance
FindTypeDecoder
Implements
Inherited Members

Constructors

FindTypeDecoder(MetadataModule, ITypeDefinition)

Constructs a FindTypeDecoder that can be used to find type in signatures from currentModule.

public FindTypeDecoder(MetadataModule currentModule, ITypeDefinition type)

Parameters

currentModule MetadataModule
type ITypeDefinition

Methods

AnyInMethodSignature(MethodSignature<bool>)

public static bool AnyInMethodSignature(MethodSignature<bool> signature)

Parameters

signature MethodSignature<bool>

Returns

bool

GetArrayType(bool, ArrayShape)

public bool GetArrayType(bool elementType, ArrayShape shape)

Parameters

elementType bool
shape ArrayShape

Returns

bool

GetByReferenceType(bool)

public bool GetByReferenceType(bool elementType)

Parameters

elementType bool

Returns

bool

GetFunctionPointerType(MethodSignature<bool>)

public bool GetFunctionPointerType(MethodSignature<bool> signature)

Parameters

signature MethodSignature<bool>

Returns

bool

GetGenericInstantiation(bool, ImmutableArray<bool>)

public bool GetGenericInstantiation(bool genericType, ImmutableArray<bool> typeArguments)

Parameters

genericType bool
typeArguments ImmutableArray<bool>

Returns

bool

GetGenericMethodParameter(Unit, int)

public bool GetGenericMethodParameter(Unit genericContext, int index)

Parameters

genericContext Unit
index int

Returns

bool

GetGenericTypeParameter(Unit, int)

public bool GetGenericTypeParameter(Unit genericContext, int index)

Parameters

genericContext Unit
index int

Returns

bool

GetModifiedType(bool, bool, bool)

public bool GetModifiedType(bool modifier, bool unmodifiedType, bool isRequired)

Parameters

modifier bool
unmodifiedType bool
isRequired bool

Returns

bool

GetPinnedType(bool)

public bool GetPinnedType(bool elementType)

Parameters

elementType bool

Returns

bool

GetPointerType(bool)

public bool GetPointerType(bool elementType)

Parameters

elementType bool

Returns

bool

GetPrimitiveType(PrimitiveTypeCode)

public bool GetPrimitiveType(PrimitiveTypeCode typeCode)

Parameters

typeCode PrimitiveTypeCode

Returns

bool

GetSZArrayType(bool)

public bool GetSZArrayType(bool elementType)

Parameters

elementType bool

Returns

bool

GetTypeFromDefinition(MetadataReader, TypeDefinitionHandle, byte)

public bool GetTypeFromDefinition(MetadataReader reader, TypeDefinitionHandle handle, byte rawTypeKind)

Parameters

reader MetadataReader
handle TypeDefinitionHandle
rawTypeKind byte

Returns

bool

GetTypeFromEntity(MetadataReader, EntityHandle, Unit, byte)

public bool GetTypeFromEntity(MetadataReader reader, EntityHandle handle, Unit genericContext = default, byte rawTypeKind = 0)

Parameters

reader MetadataReader
handle EntityHandle
genericContext Unit
rawTypeKind byte

Returns

bool

GetTypeFromReference(MetadataReader, TypeReferenceHandle, byte)

public bool GetTypeFromReference(MetadataReader reader, TypeReferenceHandle handle, byte rawTypeKind)

Parameters

reader MetadataReader
handle TypeReferenceHandle
rawTypeKind byte

Returns

bool

GetTypeFromSpecification(MetadataReader, Unit, TypeSpecificationHandle, byte)

public bool GetTypeFromSpecification(MetadataReader reader, Unit genericContext, TypeSpecificationHandle handle, byte rawTypeKind)

Parameters

reader MetadataReader
genericContext Unit
handle TypeSpecificationHandle
rawTypeKind byte

Returns

bool