NaturalJoin Method
Overloads
NaturalJoin<T>(IEnumerable<T>, String) |
Constructs a comma-separated list of the items, but the last pair are combined with the 'lastDivider'-string (defaults to " and "). |
NaturalJoin<T>(IEnumerable<T>, String)
Constructs a comma-separated list of the items, but the last pair are combined with the 'lastDivider'-string (defaults to " and ").
Declaration
public static string NaturalJoin<T>(IEnumerable<T> items, string lastDivider = " and ")
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | items | |
System.String | lastDivider |
Returns
Type | Description |
---|---|
System.String |
Type Parameters
Name | Description |
---|---|
T |
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!