Class CollectionExtensions
Extension methods for ICollection objects
Inherited Members
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 |