In This Article

ITypeReference Interface

Provides the base requirements of a type reference.

public interface ITypeReference

Properties

AssemblyName

Gets the IAssemblyName of the assembly in which this type is defined, if known.

IAssemblyName AssemblyName { get; }

Property Value

IAssemblyName:

The IAssemblyName of the assembly in which this type is defined, if known.

IsGenericType

Gets whether the current type is a generic type.

bool IsGenericType { get; }

Property Value

bool:

true if the current type is a generic type; otherwise, false.

IsTypeDefinition

Gets whether the current type is a type definition, from which other types can be constructed.

bool IsTypeDefinition { get; }

Property Value

bool:

true if the current type is a type definition, from which other types can be constructed; otherwise, false.

IsTypeParameter

Gets whether the current type is a generic type parameter.

bool IsTypeParameter { get; }

Property Value

bool:

true if the current type is a generic type parameter; otherwise, False.

QualifiedName

Gets the IQualifiedName that indicates the qualified name of the current type.

IQualifiedName QualifiedName { get; }

Property Value

IQualifiedName:

The IQualifiedName that indicates the qualified name of the current type.

TypeArguments

Gets the collection of generic type arguments, when the current type is a constructed generic type.

ITypeReferenceCollection TypeArguments { get; }

Property Value

ITypeReferenceCollection:

The collection of generic type arguments, when the current type is a constructed generic type.