docs.unity.cn
    Show / Hide Table of Contents

    Class CollectionExtensions

    Extension methods for ICollection objects

    Inheritance
    Object
    CollectionExtensions
    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
    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

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