Search Results for

    Show / Hide Table of Contents

    Class Constant

    A constant value.

    Inheritance
    object
    Constant
    DefaultConstant
    FieldTokenConstant
    Float32Constant
    Float64Constant
    IntegerConstant
    MethodTokenConstant
    NullConstant
    StringConstant
    TypeTokenConstant
    Implements
    IEquatable<Constant>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Flame
    Assembly: Flame.dll
    Syntax
    public abstract class Constant : IEquatable<Constant>

    Methods

    | Edit this page View Source

    Equals(Constant)

    Tests if this constant is equal to another constant.

    Declaration
    public abstract bool Equals(Constant other)
    Parameters
    Type Name Description
    Constant other

    The other constant.

    Returns
    Type Description
    bool

    true if the constants are equal; otherwise, false.

    | Edit this page View Source

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override abstract int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()

    Operators

    | Edit this page View Source

    operator ==(Constant, Constant)

    Tests if two constants are equal.

    Declaration
    public static bool operator ==(Constant left, Constant right)
    Parameters
    Type Name Description
    Constant left

    A first constant.

    Constant right

    A second constant.

    Returns
    Type Description
    bool

    true if the constants are equal; otherwise, false.

    | Edit this page View Source

    operator !=(Constant, Constant)

    Tests if two constants are not equal.

    Declaration
    public static bool operator !=(Constant left, Constant right)
    Parameters
    Type Name Description
    Constant left

    A first constant.

    Constant right

    A second constant.

    Returns
    Type Description
    bool

    false if the constants are equal; otherwise, true.

    Implements

    IEquatable<T>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX