In This Article

IResolverResult Interface

Provides the base requirements of a single result from an IResolver resolution operation.

public interface IResolverResult

Properties

Kind

The ResolverResultKind indicating the kind of resolver result.

ResolverResultKind Kind { get; }

Property Value

ResolverResultKind

Name

A name identifying the result.

string? Name { get; }

Property Value

string

Type

A ITypeDefinition indicating the type.

ITypeDefinition? Type { get; }

Property Value

ITypeDefinition

TypeIsInstance

Indicates whether the return Type reference designates an instance of the type.

bool TypeIsInstance { get; }

Property Value

bool:

When false, the return Type reference designates the static type.

Methods

Clone(string)

Deep clones the resolver result using the specified alias as the name.

IResolverResult Clone(string alias)
Parameter Type Description
alias string

The alias.

Returns

IResolverResult:

The cloned result.

Extension Methods