docs.unity.cn
    Show / Hide Table of Contents

    Class FixedListExtensions

    Provides extension methods for FixedListN.

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

    Methods

    Sort<T>(ref FixedList128Bytes<T>)

    Sorts the elements in this list in ascending order.

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

    The list to sort.

    Type Parameters
    Name Description
    T

    The type of the elements.

    Sort<T>(ref FixedList32Bytes<T>)

    Sorts the elements in this list in ascending order.

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

    The list to sort.

    Type Parameters
    Name Description
    T

    The type of the elements.

    Sort<T>(ref FixedList4096Bytes<T>)

    Sorts the elements in this list in ascending order.

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

    The list to sort.

    Type Parameters
    Name Description
    T

    The type of the elements.

    Sort<T>(ref FixedList512Bytes<T>)

    Sorts the elements in this list in ascending order.

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

    The list to sort.

    Type Parameters
    Name Description
    T

    The type of the elements.

    Sort<T>(ref FixedList64Bytes<T>)

    Sorts the elements in this list in ascending order.

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

    The list to sort.

    Type Parameters
    Name Description
    T

    The type of the elements.

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

    Sorts the elements in this list using a custom comparison.

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

    The list to sort.

    U comp

    The comparison function used to determine the relative order of the elements.

    Type Parameters
    Name Description
    T

    The type of the elements.

    U

    The type of the comparer.

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

    Sorts the elements in this list using a custom comparison.

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

    The list to sort.

    U comp

    The comparison function used to determine the relative order of the elements.

    Type Parameters
    Name Description
    T

    The type of the elements.

    U

    The type of the comparer.

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

    Sorts the elements in this list using a custom comparison.

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

    The list to sort.

    U comp

    The comparison function used to determine the relative order of the elements.

    Type Parameters
    Name Description
    T

    The type of the elements.

    U

    The type of the comparer.

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

    Sorts the elements in this list using a custom comparison.

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

    The list to sort.

    U comp

    The comparison function used to determine the relative order of the elements.

    Type Parameters
    Name Description
    T

    The type of the elements.

    U

    The type of the comparer.

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

    Sorts the elements in this list using a custom comparison.

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

    The list to sort.

    U comp

    The comparison function used to determine the relative order of the elements.

    Type Parameters
    Name Description
    T

    The type of the elements.

    U

    The type of the comparer.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, August 3, 2022
    Terms of use