Skip to main content
Version: 2.13.14

Humanizer.CollectionHumanizeExtensions

CollectionHumanizeExtensions Class

Humanizes an IEnumerable into a human readable list

public static class CollectionHumanizeExtensions

Inheritance System.Object → CollectionHumanizeExtensions

Methods

CollectionHumanizeExtensions.Humanize<T>(this IEnumerable<T>) Method

Formats the collection for display, calling ToString() on each object and using the default separator for the current culture.

public static string Humanize<T>(this System.Collections.Generic.IEnumerable<T> collection);

Type parameters

T

Parameters

collection System.Collections.Generic.IEnumerable<T>

Returns

System.String

CollectionHumanizeExtensions.Humanize<T>(this IEnumerable<T>, string) Method

Formats the collection for display, calling ToString() on each object and using the provided separator.

public static string Humanize<T>(this System.Collections.Generic.IEnumerable<T> collection, string separator);

Type parameters

T

Parameters

collection System.Collections.Generic.IEnumerable<T>

separator System.String

Returns

System.String

CollectionHumanizeExtensions.Humanize<T>(this IEnumerable<T>, Func<T,object>) Method

Formats the collection for display, calling displayFormatter on each element and using the default separator for the current culture.

public static string Humanize<T>(this System.Collections.Generic.IEnumerable<T> collection, System.Func<T,object> displayFormatter);

Type parameters

T

Parameters

collection System.Collections.Generic.IEnumerable<T>

displayFormatter System.Func<T,System.Object>

Returns

System.String

CollectionHumanizeExtensions.Humanize<T>(this IEnumerable<T>, Func<T,object>, string) Method

Formats the collection for display, calling displayFormatter on each element and using the provided separator.

public static string Humanize<T>(this System.Collections.Generic.IEnumerable<T> collection, System.Func<T,object> displayFormatter, string separator);

Type parameters

T

Parameters

collection System.Collections.Generic.IEnumerable<T>

displayFormatter System.Func<T,System.Object>

separator System.String

Returns

System.String

CollectionHumanizeExtensions.Humanize<T>(this IEnumerable<T>, Func<T,string>) Method

Formats the collection for display, calling displayFormatter on each element and using the default separator for the current culture.

public static string Humanize<T>(this System.Collections.Generic.IEnumerable<T> collection, System.Func<T,string> displayFormatter);

Type parameters

T

Parameters

collection System.Collections.Generic.IEnumerable<T>

displayFormatter System.Func<T,System.String>

Returns

System.String

CollectionHumanizeExtensions.Humanize<T>(this IEnumerable<T>, Func<T,string>, string) Method

Formats the collection for display, calling displayFormatter on each element and using the provided separator.

public static string Humanize<T>(this System.Collections.Generic.IEnumerable<T> collection, System.Func<T,string> displayFormatter, string separator);

Type parameters

T

Parameters

collection System.Collections.Generic.IEnumerable<T>

displayFormatter System.Func<T,System.String>

separator System.String

Returns

System.String