Class SimpleName
Defines a simple name: a name and the number of type parameters it takes.
Inherited Members
Namespace: Flame
Assembly: Flame.dll
Syntax
public class SimpleName : UnqualifiedName, IEquatable<UnqualifiedName>, IEquatable<SimpleName>
Constructors
| Edit this page View SourceSimpleName(string)
Creates a new simple name from a string. The resulting name has zero type parameters.
Declaration
public SimpleName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
SimpleName(string, int)
Creates a new simple name from a string and a number of type parameters.
Declaration
public SimpleName(string name, int typeParameterCount)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| int | typeParameterCount |
Properties
| Edit this page View SourceName
Gets this simple name's actual name.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
TypeParameterCount
Gets the number of type parameters for this simple name.
Declaration
public int TypeParameterCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceEquals(SimpleName)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(SimpleName other)
Parameters
| Type | Name | Description |
|---|---|---|
| SimpleName | 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. |