Class StringConstant
A character string constant.
Implements
Inherited Members
Namespace: Flame.Constants
Assembly: Flame.dll
Syntax
public sealed class StringConstant : Constant, IEquatable<Constant>
Constructors
| Edit this page View SourceStringConstant(string)
Creates a constant from a value.
Declaration
public StringConstant(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The constant value. |
Properties
| Edit this page View SourceValue
Gets the value represented by this constant.
Declaration
public string Value { get; }
Property Value
| Type | Description |
|---|---|
| string | The constant value. |
Methods
| Edit this page View SourceEquals(Constant)
Tests if this constant is equal to another constant.
Declaration
public override bool Equals(Constant other)
Parameters
| Type | Name | Description |
|---|---|---|
| Constant | other | The other constant. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |