Table of Contents

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

source IEnumerable<T>

The source collection to convert.

delimiter string

The delimiter to separate items by in the string. Default, comma.

Returns

string

A delimited string representing the collection.

Type Parameters

T

The type of item within the collection.