SimpleName Class
Represents a simple name with optional type arguments, which is a component of an IQualifiedName.
public class SimpleName : ISimpleName
- Inheritance:
- object object
- Implements:
- ISimpleName
Constructors
SimpleName(SimpleName)
Initializes an instance of the class.
public SimpleName(SimpleName simpleName)
| Parameter | Type | Description |
|---|---|---|
| simpleName | SimpleName | The AST simple name to examine. |
SimpleName(string, params IQualifiedName[]?)
Initializes an instance of the class.
public SimpleName(string text, params IQualifiedName[]? typeArguments)
| Parameter | Type | Description |
|---|---|---|
| text | string | The text value of the identifier. |
| typeArguments | IQualifiedName[] | The collection of optional generic type arguments for the identifier. |
Properties
HasTypeArguments
Indicates whether the identifier has at least one type argument.
Text
The text value of the identifier.
TypeArguments
The collection of optional generic type arguments for the identifier.
Methods
Clone()
Returns a deep clone of the object.
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:
trueif the specified object is equal to the current object; otherwise,false.
GetHashCode()
Serves as the default hash function.
ToString()
Returns the string representation of this object.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)