docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FillWith

    FillWith<T>(List<T>, IEnumerable<T>)

    Replaces current contents of the list with a copy of the given collection.

    Declaration
    public static void FillWith<T>(this List<T> list, IEnumerable<T> collection)
    Parameters
    Type Name Description
    List<T> list

    The list to modify.

    IEnumerable<T> collection

    The collection to copy.

    Type Parameters
    Name Description
    T

    The type of elements in the list.

    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)