docs.unity3d.com
    Show / Hide Table of Contents

    Class CollectionExtensions

    Extension methods for ICollection objects

    Inheritance
    Object
    CollectionExtensions
    Namespace: Unity.XR.CoreUtils
    Syntax
    public static class CollectionExtensions

    Methods

    Stringify<T>(ICollection<T>)

    Creates a comma separated string of all elements in the collection. Each collection element is implicitly converted to a string and added to the list.

    Declaration
    public static string Stringify<T>(this ICollection<T> collection)
    Parameters
    Type Name Description
    ICollection<T> collection

    The collection to create a string from

    Returns
    Type Description
    String

    A string with all elements in the collection converted to strings and separated by commas.

    Type Parameters
    Name Description
    T

    The type of objects in the collection

    In This Article
    • Methods
      • Stringify<T>(ICollection<T>)
    Back to top
    Terms of use
    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