Class TypeTokenConstant
A type token constant: a constant that wraps a runtime handle to a type.
Implements
System.IEquatable<Constant>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Flame.Constants
Assembly: Flame.dll
Syntax
public sealed class TypeTokenConstant : Constant, IEquatable<Constant>
Constructors
| Improve this Doc View SourceTypeTokenConstant(IType)
Creates a type token constant from a type.
Declaration
public TypeTokenConstant(IType type)
Parameters
Type | Name | Description |
---|---|---|
IType | type | The type to create a token to. |
Properties
| Improve this Doc View SourceType
Gets the type encapsulated by this type token constant.
Declaration
public IType Type { get; }
Property Value
Type | Description |
---|---|
IType | A type. |
Methods
| Improve this Doc 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 |
---|---|
System.Boolean |
|
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Implements
System.IEquatable<T>