Sage Modeling and Simulation Library

StringOperations..::..ToCommasAndAndedList<(Of <(<'T>)>)> Method (IEnumerable<(Of <(<'T>)>)>, Func<(Of <(<'T, String>)>)>)

Given an IEnumerable of type T and a converter function from T to string, returns a string representation such as "Foo, Bar and Baz".

Namespace:  Highpoint.Sage.Utility
Assembly:  Sage4 (in Sage4.dll)

Syntax


public static string ToCommasAndAndedList<T>(
	IEnumerable<T> ienum,
	Func<T, string> converterFunc
)

Type Parameters

T

Parameters

ienum
Type: IEnumerable<(Of <(<'T>)>)>
The IEnumerable of type T.
converterFunc
Type: Func<(Of <(<'T, String>)>)>
The converter function.

Return Value

the string representation.