Search Results for

    Show / Hide Table of Contents

    Class TypeTokenConstant

    A type token constant: a constant that wraps a runtime handle to a type.

    Inheritance
    object
    Constant
    TypeTokenConstant
    Implements
    IEquatable<Constant>
    Inherited Members
    Constant.Equals(object)
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Flame.Constants
    Assembly: Flame.dll
    Syntax
    public sealed class TypeTokenConstant : Constant, IEquatable<Constant>

    Constructors

    | Edit this page View Source

    TypeTokenConstant(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

    | Edit this page View Source

    Type

    Gets the type encapsulated by this type token constant.

    Declaration
    public IType Type { get; }
    Property Value
    Type Description
    IType

    A type.

    Methods

    | Edit this page View Source

    Equals(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

    true if the constants are equal; otherwise, false.

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

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    Constant.GetHashCode()
    | Edit this page View Source

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()

    Implements

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