In This Article

QualifiedName Class

Represents a qualified name.

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

Constructors

QualifiedName(QualifiedName)

Initializes an instance of the class.

public QualifiedName(QualifiedName qualifiedName)
Parameter Type Description
qualifiedName QualifiedName

The AST qualified name to examine.

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

Initializes an instance of the 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 an instance of the 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 an instance of the 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

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

public string? Alias { get; }

Property Value

string

ArrayRankSpecifiers

The collection of array rank specifiers.

public IList<int> ArrayRankSpecifiers { get; }

Property Value

IList<int>

ElementName

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

public string? ElementName { get; }

Property Value

string

HasArrayRankSpecifiers

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

public bool HasArrayRankSpecifiers { get; }

Property Value

bool

HasIdentifiers

Indicates whether the qualified name has at least one identifier.

public bool HasIdentifiers { get; }

Property Value

bool

Identifiers

The collection of identifiers for the qualified name.

public IList<ISimpleName> Identifiers { get; }

Property Value

IList<ISimpleName>

IsGlobal

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

public bool IsGlobal { get; }

Property Value

bool

PointerLevel

The pointer level.

public int PointerLevel { get; }

Property Value

int

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 with the current object.

Returns

bool:

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

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int:

A hash code for the current object.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods