docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SpecialToken

    Represents a special token in a Template.

    Inheritance
    object
    Piece
    SpecialToken
    Implements
    IEquatable<Piece>
    IEquatable<SpecialToken>
    Inherited Members
    Piece.SequenceId
    Piece.Equals(Piece)
    Piece.Equals(object)
    Piece.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.InferenceEngine.Tokenization.PostProcessors.Templating
    Assembly: Unity.InferenceEngine.Tokenization.dll
    Syntax
    public class SpecialToken : Piece, IEquatable<Piece>, IEquatable<SpecialToken>

    Constructors

    SpecialToken(string, int)

    Initializes a new instance of the SpecialToken type.

    Declaration
    public SpecialToken(string value, int sequenceId)
    Parameters
    Type Name Description
    string value

    The value of the token.

    int sequenceId

    The type id of the sequence.

    Properties

    Value

    The value of the token.

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

    Methods

    Equals(SpecialToken)

    Declaration
    public bool Equals(SpecialToken other)
    Parameters
    Type Name Description
    SpecialToken other
    Returns
    Type Description
    bool

    GetPieceHashCode()

    Gets the hash code of this Piece.

    Declaration
    protected override int GetPieceHashCode()
    Returns
    Type Description
    int

    The hash code of this Piece.

    Overrides
    Piece.GetPieceHashCode()

    PieceEquals(Piece)

    Tell whether this Piece equals the other one.

    Declaration
    protected override bool PieceEquals(Piece other)
    Parameters
    Type Name Description
    Piece other

    The other Piece to compare.

    Returns
    Type Description
    bool

    Whether this Piece equals the other one.

    Overrides
    Piece.PieceEquals(Piece)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    Piece.ToString()

    Implements

    IEquatable<T>
    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)