Class FixedListExtensions | Collections | 0.12.0-preview.13
docs.unity3d.com
    Show / Hide Table of Contents

    Class FixedListExtensions

    Inheritance
    Object
    FixedListExtensions
    Namespace: Unity.Collections
    Syntax
    public static class FixedListExtensions

    Methods

    Sort<T>(ref FixedList128<T>)

    Sorts the elements in this FixedList128<T> in ascending order.

    Declaration
    public static void Sort<T>(this ref FixedList128<T> data)
        where T : struct, IComparable<T>
    Parameters
    Type Name Description
    FixedList128<T> data

    Container to perform sort.

    Type Parameters
    Name Description
    T

    The type of the elements in the container.

    Sort<T>(ref FixedList32<T>)

    Sorts the elements in this FixedList32<T> in ascending order.

    Declaration
    public static void Sort<T>(this ref FixedList32<T> data)
        where T : struct, IComparable<T>
    Parameters
    Type Name Description
    FixedList32<T> data

    Container to perform sort.

    Type Parameters
    Name Description
    T

    The type of the elements in the container.

    Sort<T>(ref FixedList4096<T>)

    Sorts the elements in this FixedList4096<T> in ascending order.

    Declaration
    public static void Sort<T>(this ref FixedList4096<T> data)
        where T : struct, IComparable<T>
    Parameters
    Type Name Description
    FixedList4096<T> data

    Container to perform sort.

    Type Parameters
    Name Description
    T

    The type of the elements in the container.

    Sort<T>(ref FixedList512<T>)

    Sorts the elements in this FixedList512<T> in ascending order.

    Declaration
    public static void Sort<T>(this ref FixedList512<T> data)
        where T : struct, IComparable<T>
    Parameters
    Type Name Description
    FixedList512<T> data

    Container to perform sort.

    Type Parameters
    Name Description
    T

    The type of the elements in the container.

    Sort<T>(ref FixedList64<T>)

    Sorts the elements in this FixedList64<T> in ascending order.

    Declaration
    public static void Sort<T>(this ref FixedList64<T> data)
        where T : struct, IComparable<T>
    Parameters
    Type Name Description
    FixedList64<T> data

    Container to perform sort.

    Type Parameters
    Name Description
    T

    The type of the elements in the container.

    Sort<T, U>(ref FixedList128<T>, U)

    Sorts the elements in this FixedList128<T> using a custom comparison function.

    Declaration
    public static void Sort<T, U>(this ref FixedList128<T> data, U comp)
        where T : struct, IComparable<T> where U : IComparer<T>
    Parameters
    Type Name Description
    FixedList128<T> data

    Container to perform sort.

    U comp

    A comparison function that indicates whether one element in the array is less than, equal to, or greater than another element.

    Type Parameters
    Name Description
    T

    The type of the elements in the container.

    U

    The comparer type.

    Sort<T, U>(ref FixedList32<T>, U)

    Sorts the elements in this FixedList32<T> using a custom comparison function.

    Declaration
    public static void Sort<T, U>(this ref FixedList32<T> data, U comp)
        where T : struct, IComparable<T> where U : IComparer<T>
    Parameters
    Type Name Description
    FixedList32<T> data

    Container to perform sort.

    U comp

    A comparison function that indicates whether one element in the array is less than, equal to, or greater than another element.

    Type Parameters
    Name Description
    T

    The type of the elements in the container.

    U

    The comparer type.

    Sort<T, U>(ref FixedList4096<T>, U)

    Sorts the elements in this FixedList4096<T> using a custom comparison function.

    Declaration
    public static void Sort<T, U>(this ref FixedList4096<T> data, U comp)
        where T : struct, IComparable<T> where U : IComparer<T>
    Parameters
    Type Name Description
    FixedList4096<T> data

    Container to perform sort.

    U comp

    A comparison function that indicates whether one element in the array is less than, equal to, or greater than another element.

    Type Parameters
    Name Description
    T

    The type of the elements in the container.

    U

    The comparer type.

    Sort<T, U>(ref FixedList512<T>, U)

    Sorts the elements in this FixedList512<T> using a custom comparison function.

    Declaration
    public static void Sort<T, U>(this ref FixedList512<T> data, U comp)
        where T : struct, IComparable<T> where U : IComparer<T>
    Parameters
    Type Name Description
    FixedList512<T> data

    Container to perform sort.

    U comp

    A comparison function that indicates whether one element in the array is less than, equal to, or greater than another element.

    Type Parameters
    Name Description
    T

    The type of the elements in the container.

    U

    The comparer type.

    Sort<T, U>(ref FixedList64<T>, U)

    Sorts the elements in this FixedList64<T> using a custom comparison function.

    Declaration
    public static void Sort<T, U>(this ref FixedList64<T> data, U comp)
        where T : struct, IComparable<T> where U : IComparer<T>
    Parameters
    Type Name Description
    FixedList64<T> data

    Container to perform sort.

    U comp

    A comparison function that indicates whether one element in the array is less than, equal to, or greater than another element.

    Type Parameters
    Name Description
    T

    The type of the elements in the container.

    U

    The comparer type.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023