Class GenericName
Defines a generic name; a simple name that is instantiated by a number of generic type arguments.
Inherited Members
Namespace: Flame
Assembly: Flame.dll
Syntax
public class GenericName : UnqualifiedName, IEquatable<UnqualifiedName>, IEquatable<GenericName>
Constructors
| Edit this page View SourceGenericName(QualifiedName, IReadOnlyList<QualifiedName>)
Creates a new generic name from the given declaration name and a number of type arguments names.
Declaration
public GenericName(QualifiedName declarationName, IReadOnlyList<QualifiedName> typeArgumentNames)
Parameters
| Type | Name | Description |
|---|---|---|
| QualifiedName | declarationName | |
| IReadOnlyList<QualifiedName> | typeArgumentNames |
GenericName(UnqualifiedName, IReadOnlyList<QualifiedName>)
Creates a new generic name from the given declaration name and a number of type arguments names.
Declaration
public GenericName(UnqualifiedName declarationName, IReadOnlyList<QualifiedName> typeArgumentNames)
Parameters
| Type | Name | Description |
|---|---|---|
| UnqualifiedName | declarationName | |
| IReadOnlyList<QualifiedName> | typeArgumentNames |
Properties
| Edit this page View SourceDeclarationName
Gets this generic name's instantiated name,
Declaration
public QualifiedName DeclarationName { get; }
Property Value
| Type | Description |
|---|---|
| QualifiedName |
TypeArgumentNames
Gets this generic name's type arguments.
Declaration
public IReadOnlyList<QualifiedName> TypeArgumentNames { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<QualifiedName> |
Methods
| Edit this page View SourceEquals(GenericName)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(GenericName other)
Parameters
| Type | Name | Description |
|---|---|---|
| GenericName | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(UnqualifiedName)
Checks if this unqualified name equals another unqualified name.
Declaration
public override bool Equals(UnqualifiedName other)
Parameters
| Type | Name | Description |
|---|---|---|
| UnqualifiedName | other | An unqualified name to compare this unqualified name to. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
| Edit this page View SourceGetHashCode()
Gets a hash code for this unqualified name.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code. |
Overrides
| Edit this page View SourceToString()
Gets a string representation for this unqualified name.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string representation. |