docs.unity3d.com
    目次を表示する/隠す

    Struct NativeSortExtension.DefaultComparer<T>

    A comparer that uses IComparable.CompareTo(). For primitive types, this is an ascending sort.

    Namespace: Unity.Collections
    Syntax
    public struct DefaultComparer<T> : IComparer<T> where T : IComparable<T>
    Type Parameters
    Name Description
    T

    Source type of elements

    Methods

    Compare(T, T)

    Compares two values.

    Declaration
    public int Compare(T x, T y)
    Parameters
    Type Name Description
    T x

    First value to compare.

    T y

    Second value to compare.

    Returns
    Type Description
    Int32

    A signed integer that denotes the relative values of x and y: 0 if they're equal, negative if x &lt; y, and positive if x > y.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)