Class CollectionExtensions
- Namespace
- MADE.Data.Converters.Extensions
- Assembly
- MADE.Data.Converters.dll
Defines a collection of extensions for collection objects.
public static class CollectionExtensions
- Inheritance
-
CollectionExtensions
- Inherited Members
Methods
ToDelimitedString<T>(IEnumerable<T>, string)
Converts a collection of items to a string separated by a delimiter.
public static string ToDelimitedString<T>(this IEnumerable<T> source, string delimiter = ",")
Parameters
sourceIEnumerable<T>The source collection to convert.
delimiterstringThe delimiter to separate items by in the string. Default, comma.
Returns
- string
A delimited string representing the collection.
Type Parameters
TThe type of item within the collection.