{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method CompareTo | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CompareTo

    CompareTo(FixedList32Bytes<T>)

    Returns a number denoting whether this list should be placed before or after another list in a sort.

    Declaration
    public int CompareTo(FixedList32Bytes<T> other)
    Parameters
    Type Name Description
    FixedList32Bytes<T> other

    A list to to compare with.

    Returns
    Type Description
    int

    An integer denoting the respective sort position of the list relative to the other:

     0 denotes that both lists should have the same position in a sort.
     -1 denotes that this list should precede the other list in a sort.
     +1 denotes that this list should follow the other list in a sort.
    

    CompareTo(FixedList64Bytes<T>)

    Returns a number denoting whether this list should be placed before or after another list in a sort.

    Declaration
    public int CompareTo(FixedList64Bytes<T> other)
    Parameters
    Type Name Description
    FixedList64Bytes<T> other

    A list to to compare with.

    Returns
    Type Description
    int

    An integer denoting the respective sort position of the list relative to the other:

     0 denotes that both lists should have the same position in a sort.
     -1 denotes that this list should precede the other list in a sort.
     +1 denotes that this list should follow the other list in a sort.
    

    CompareTo(FixedList128Bytes<T>)

    Returns a number denoting whether this list should be placed before or after another list in a sort.

    Declaration
    public int CompareTo(FixedList128Bytes<T> other)
    Parameters
    Type Name Description
    FixedList128Bytes<T> other

    A list to to compare with.

    Returns
    Type Description
    int

    An integer denoting the respective sort position of the list relative to the other:

     0 denotes that both lists should have the same position in a sort.
     -1 denotes that this list should precede the other list in a sort.
     +1 denotes that this list should follow the other list in a sort.
    

    CompareTo(FixedList512Bytes<T>)

    Returns a number denoting whether this list should be placed before or after another list in a sort.

    Declaration
    public int CompareTo(FixedList512Bytes<T> other)
    Parameters
    Type Name Description
    FixedList512Bytes<T> other

    A list to to compare with.

    Returns
    Type Description
    int

    An integer denoting the respective sort position of the list relative to the other:

     0 denotes that both lists should have the same position in a sort.
     -1 denotes that this list should precede the other list in a sort.
     +1 denotes that this list should follow the other list in a sort.
    

    CompareTo(FixedList4096Bytes<T>)

    Returns a number denoting whether this list should be placed before or after another list in a sort.

    Declaration
    public int CompareTo(FixedList4096Bytes<T> other)
    Parameters
    Type Name Description
    FixedList4096Bytes<T> other

    A list to to compare with.

    Returns
    Type Description
    int

    An integer denoting the respective sort position of the list relative to the other:

     0 denotes that both lists should have the same position in a sort.
     -1 denotes that this list should precede the other list in a sort.
     +1 denotes that this list should follow the other list in a sort.
    
    In This Article
    Back to top
    Copyright © 2023 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)