Class SimpleName
Defines a simple name: a name and the number of type parameters it takes.
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 SimpleName : UnqualifiedName, IEquatable<UnqualifiedName>, IEquatable<SimpleName>
Constructors
| Improve this Doc 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 |
---|---|---|
System.String | name |
SimpleName(String, Int32)
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 |
---|---|---|
System.String | name | |
System.Int32 | typeParameterCount |
Properties
| Improve this Doc View SourceName
Gets this simple name's actual name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
TypeParameterCount
Gets the number of type parameters for this simple name.
Declaration
public int TypeParameterCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceEquals(SimpleName)
Declaration
public bool Equals(SimpleName other)
Parameters
Type | Name | Description |
---|---|---|
SimpleName | 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>