docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CollectionExtensions

    Extension methods for ICollection<T> objects.

    Inheritance
    object
    CollectionExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.XR.CoreUtils
    Assembly: Unity.XR.CoreUtils.dll
    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
    Back to top
    Copyright © 2025 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)