Class GenericName
Defines a generic name; a simple name that is instantiated by a number of generic type arguments.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Flame
Assembly: Flame.dll
Syntax
public class GenericName : UnqualifiedName, IEquatable<UnqualifiedName>, IEquatable<GenericName>
Constructors
| Improve this Doc 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 | |
System.Collections.Generic.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 | |
System.Collections.Generic.IReadOnlyList<QualifiedName> | typeArgumentNames |
Properties
| Improve this Doc 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 |
---|---|
System.Collections.Generic.IReadOnlyList<QualifiedName> |
Methods
| Improve this Doc View SourceEquals(GenericName)
Declaration
public bool Equals(GenericName other)
Parameters
Type | Name | Description |
---|---|---|
GenericName | other |
Returns
Type | Description |
---|---|
System.Boolean |
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 |
---|---|
System.Boolean |
|
Overrides
| Improve this Doc View SourceGetHashCode()
Gets a hash code for this unqualified name.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code. |
Overrides
| Improve this Doc View SourceToString()
Gets a string representation for this unqualified name.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string representation. |
Overrides
Implements
System.IEquatable<T>
System.IEquatable<T>