In This Article

QualifiedName Class

Represents a qualified name.

public class QualifiedName : IQualifiedName
Inheritance:
object object
Implements:
IQualifiedName

Constructors

QualifiedName(QualifiedName)

Initializes a new instance of the QualifiedName class.

public QualifiedName(QualifiedName qualifiedName)
Parameter Type Description
qualifiedName QualifiedName

The AST qualified name to examine.

QualifiedName(string, bool, params ISimpleName[])

Initializes a new instance of the QualifiedName class.

public QualifiedName(string alias, bool isGlobal, params ISimpleName[] identifiers)
Parameter Type Description
alias string

The optional alias that indicates the root of the qualified name.

isGlobal bool

Whether the qualified name is rooted at the default global namespace.

identifiers ISimpleName[]

The collection of identifiers for the qualified name.

QualifiedName(string, bool, int[], int, params ISimpleName[])

Initializes a new instance of the QualifiedName class.

public QualifiedName(string alias, bool isGlobal, int[] arrayRankSpecifiers, int pointerLevel, params ISimpleName[] identifiers)
Parameter Type Description
alias string

The optional alias that indicates the root of the qualified name.

isGlobal bool

Whether the qualified name is rooted at the default global namespace.

arrayRankSpecifiers int[]

The array rank specifiers.

pointerLevel int

The pointer level.

identifiers ISimpleName[]

The collection of identifiers for the qualified name.

QualifiedName(string, bool, int[], int, string, params ISimpleName[])

Initializes a new instance of the QualifiedName class.

public QualifiedName(string alias, bool isGlobal, int[] arrayRankSpecifiers, int pointerLevel, string elementName, params ISimpleName[] identifiers)
Parameter Type Description
alias string

The optional alias that indicates the root of the qualified name.

isGlobal bool

Whether the qualified name is rooted at the default global namespace.

arrayRankSpecifiers int[]

The array rank specifiers.

pointerLevel int

The pointer level.

elementName string

The element name, if specified when this qualified name is used within a tuple.

identifiers ISimpleName[]

The collection of identifiers for the qualified name.

Properties

Alias

Gets the optional alias that indicates the root of the qualified name.

public string Alias { get; }

Property Value

string:

The optional alias that indicates the root of the qualified name.

ArrayRankSpecifiers

Gets the array rank specifiers.

public IList<int> ArrayRankSpecifiers { get; }

Property Value

IList<int>:

The array rank specifiers.

ElementName

Gets the element name, if specified when this qualified name is used within a tuple.

public string ElementName { get; }

Property Value

string:

The element name, if specified when this qualified name is used within a tuple.

HasArrayRankSpecifiers

Gets whether the qualified name has at least one array rank specifier.

public bool HasArrayRankSpecifiers { get; }

Property Value

bool:

true if the qualified name has at least one array rank specifier; otherwise, false.

HasIdentifiers

Gets whether the qualified name has at least one identifier.

public bool HasIdentifiers { get; }

Property Value

bool:

true if the qualified name has at least one identifier; otherwise, false.

Identifiers

Gets the collection of identifiers for the qualified name.

public IList<ISimpleName> Identifiers { get; }

Property Value

IList<ISimpleName>:

The collection of identifiers for the qualified name.

IsGlobal

Gets whether the qualified name is rooted at the default global namespace.

public bool IsGlobal { get; }

Property Value

bool:

true if the qualified name is rooted at the default global namespace; otherwise, false.

PointerLevel

Gets the pointer level.

public int PointerLevel { get; }

Property Value

int:

The pointer level.

Methods

Clone()

Returns a deep clone of the object.

public IQualifiedName Clone()

Returns

IQualifiedName:

The object that was created.

Equals(object)

Determines whether the specified Object is equal to the current Object.

public override bool Equals(object obj)
Parameter Type Description
obj object

The Object to compare to the current Object.

Returns

bool:

true if the specified Object is equal to the current Object; otherwise, false.

GetHashCode()

Returns a hash code for this object.

public override int GetHashCode()

Returns

int:

An integer value that specifies a hash value for this object.

ToString()

Returns a String that represents the current Object.

public override string ToString()

Returns

string:

A String that represents the current Object.

Inherited Members

Extension Methods