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 a new instance of the TypeReference 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

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

public IModuleReference DeclaringModule { get; }

Property Value

IModuleReference:

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

Name

Gets the references's name.

public string Name { get; }

Property Value

string:

The references's name.

Methods

ToString()

Returns a String that represents the current Object.

public override string ToString()

Returns

string:

A String that represents the current Object.

Inherited Members