Class CollectionExtensions
Defines a collection of extensions for collection objects.
Inheritance
System.Object
CollectionExtensions
Namespace: MADE.Data.Converters.Extensions
Assembly: MADE.Data.Converters.dll
Syntax
public static class CollectionExtensions : object
Methods
| Improve this Doc View SourceToDelimitedString<T>(IEnumerable<T>, String)
Converts a collection of items to a string separated by a delimiter.
Declaration
public static string ToDelimitedString<T>(this IEnumerable<T> source, string delimiter = ",")
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | source | The source collection to convert. |
System.String | delimiter | The delimiter to separate items by in the string. Default, comma. |
Returns
Type | Description |
---|---|
System.String | A delimited string representing the collection. |
Type Parameters
Name | Description |
---|---|
T | The type of item within the collection. |