In This Article

TypeReference Class

Represents a type reference.

public class TypeReference : ITypeReference, IReflectionDefinition
Inheritance:
object object
Implements:
ITypeReference IReflectionDefinition

Constructors

TypeReference(string, string)

Initializes an instance of the class.

public TypeReference(string modulePath, string typeName)
Parameter Type Description
modulePath string

The path to the declaring module.

typeName string

The type name.

Properties

DeclaringModule

The reference to the module in which the type is declared.

public IModuleReference? DeclaringModule { get; }

Property Value

IModuleReference

Name

The definition's name.

public string Name { get; }

Property Value

string

Methods

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods