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 |