Click or drag to resize

strConcatStrConcatK, V Method (IEnumerableKeyValuePairK, V, String, String)

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static string StrConcat<K, V>(
	this IEnumerable<KeyValuePair<K, V>> a,
	string definitionSeperator = ": ",
	string seperator = ", "
)

Parameters

a
Type: System.Collections.GenericIEnumerableKeyValuePairK, V
The IEnumerableT of KeyValuePairTKey, TValue to use.
definitionSeperator (Optional)
Type: SystemString
The separator to place between keys and values.
seperator (Optional)
Type: SystemString
The separator to place between key-value pairs.

Type Parameters

K
The type of the keys.
V
The type of the values

Return Value

Type: String
All the key value pairs in a converted to String and concatenated.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableKeyValuePairK, V. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also