Table of Contents

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

bool

Namespace

Gets the namespace the type resides in.

string? Namespace { get; }

Property Value

string

Scope

Gets the resolution scope that defines the type.

IResolutionScope? Scope { get; }

Property Value

IResolutionScope

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 can only be invoked if the reference was added to a module.

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.