docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class ListExtensions

    Extension methods for List<T> objects.

    Inheritance
    object
    ListExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils
    Assembly: solution.dll
    Syntax
    public static class ListExtensions

    Methods

    Name Description
    EnsureCapacity<T>(List<T>, int)

    Ensures that the capacity of this list is at least as large the given value.

    Fill<T>(List<T>, int)

    Fills the list with default objects of type T.

    SwapAtIndices<T>(List<T>, int, int)

    Swaps the elements at first and second with minimal copying. Works for any type of List<T>.

    In This Article
    Back to top
    Copyright © 2024 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)