Interface ITypeDescriptor
- Namespace
- AsmResolver.DotNet
- Assembly
- AsmResolver.DotNet.dll
Provides members for describing a type in a managed assembly.
public interface ITypeDescriptor : IMemberDescriptor, IFullNameProvider, INameProvider, IModuleProvider, IImportable
- Inherited Members
- Extension Methods
Properties
IsValueType
Gets a value indicating whether instances of this type are passed on by value or by reference.
bool IsValueType { get; }
Property Value
Namespace
Gets the namespace the type resides in.
string? Namespace { get; }
Property Value
Scope
Gets the resolution scope that defines the type.
IResolutionScope? Scope { get; }
Property Value
Methods
Resolve()
Resolves the reference to a type definition.
TypeDefinition? Resolve()
Returns
- TypeDefinition
The resolved type definition, or
null
if the type could not be resolved.
Remarks
This method assumes the context module as the resolution context.
Resolve(ModuleDefinition)
Resolves the reference to a method definition, assuming the provided module as resolution context.
TypeDefinition? Resolve(ModuleDefinition context)
Parameters
context
ModuleDefinitionThe module to assume as resolution context.
Returns
- TypeDefinition
The resolved method definition, or
null
if the method could not be resolved.
ToTypeDefOrRef()
Transforms the type descriptor to an instance of a ITypeDefOrRef, which can be referenced by a metadata token.
ITypeDefOrRef ToTypeDefOrRef()
Returns
- ITypeDefOrRef
The constructed TypeDefOrRef instance.
ToTypeSignature()
Transforms the type descriptor to an instance of a TypeSignature, which can be used in blob signatures.
TypeSignature ToTypeSignature()
Returns
- TypeSignature
The constructed type signature instance.