Class FieldTokenConstant
A field token constant: a constant that wraps a runtime handle to a field.
Implements
Inherited Members
Namespace: Flame.Constants
Assembly: Flame.dll
Syntax
public sealed class FieldTokenConstant : Constant, IEquatable<Constant>
Constructors
| Edit this page View SourceFieldTokenConstant(IField)
Creates a field token constant from a field.
Declaration
public FieldTokenConstant(IField field)
Parameters
| Type | Name | Description |
|---|---|---|
| IField | field | The field to create a token to. |
Properties
| Edit this page View SourceField
Gets the field encapsulated by this field token constant.
Declaration
public IField Field { get; }
Property Value
| Type | Description |
|---|---|
| IField | A field. |
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. |