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
MetadataModuletype
ITypeDefinition
Methods
AnyInMethodSignature(MethodSignature<bool>)
public static bool AnyInMethodSignature(MethodSignature<bool> signature)
Parameters
signature
MethodSignature<bool>
Returns
GetArrayType(bool, ArrayShape)
public bool GetArrayType(bool elementType, ArrayShape shape)
Parameters
elementType
boolshape
ArrayShape
Returns
GetByReferenceType(bool)
public bool GetByReferenceType(bool elementType)
Parameters
elementType
bool
Returns
GetFunctionPointerType(MethodSignature<bool>)
public bool GetFunctionPointerType(MethodSignature<bool> signature)
Parameters
signature
MethodSignature<bool>
Returns
GetGenericInstantiation(bool, ImmutableArray<bool>)
public bool GetGenericInstantiation(bool genericType, ImmutableArray<bool> typeArguments)
Parameters
genericType
booltypeArguments
ImmutableArray<bool>
Returns
GetGenericMethodParameter(Unit, int)
public bool GetGenericMethodParameter(Unit genericContext, int index)
Parameters
Returns
GetGenericTypeParameter(Unit, int)
public bool GetGenericTypeParameter(Unit genericContext, int index)
Parameters
Returns
GetModifiedType(bool, bool, bool)
public bool GetModifiedType(bool modifier, bool unmodifiedType, bool isRequired)
Parameters
Returns
GetPinnedType(bool)
public bool GetPinnedType(bool elementType)
Parameters
elementType
bool
Returns
GetPointerType(bool)
public bool GetPointerType(bool elementType)
Parameters
elementType
bool
Returns
GetPrimitiveType(PrimitiveTypeCode)
public bool GetPrimitiveType(PrimitiveTypeCode typeCode)
Parameters
typeCode
PrimitiveTypeCode
Returns
GetSZArrayType(bool)
public bool GetSZArrayType(bool elementType)
Parameters
elementType
bool
Returns
GetTypeFromDefinition(MetadataReader, TypeDefinitionHandle, byte)
public bool GetTypeFromDefinition(MetadataReader reader, TypeDefinitionHandle handle, byte rawTypeKind)
Parameters
reader
MetadataReaderhandle
TypeDefinitionHandlerawTypeKind
byte
Returns
GetTypeFromEntity(MetadataReader, EntityHandle, Unit, byte)
public bool GetTypeFromEntity(MetadataReader reader, EntityHandle handle, Unit genericContext = default, byte rawTypeKind = 0)
Parameters
reader
MetadataReaderhandle
EntityHandlegenericContext
UnitrawTypeKind
byte
Returns
GetTypeFromReference(MetadataReader, TypeReferenceHandle, byte)
public bool GetTypeFromReference(MetadataReader reader, TypeReferenceHandle handle, byte rawTypeKind)
Parameters
reader
MetadataReaderhandle
TypeReferenceHandlerawTypeKind
byte
Returns
GetTypeFromSpecification(MetadataReader, Unit, TypeSpecificationHandle, byte)
public bool GetTypeFromSpecification(MetadataReader reader, Unit genericContext, TypeSpecificationHandle handle, byte rawTypeKind)
Parameters
reader
MetadataReadergenericContext
Unithandle
TypeSpecificationHandlerawTypeKind
byte