Utility ArrayToDictionary T  Method CleanCode C# Libraries v1.2.03 API
Converts a two-dimensional array to a dictionary. The first element of each row is used as the key and the second element is the associated value. Any remaining elements in the row are ignored.

Namespace: CleanCode.Data
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax

public static Dictionary<T, T> ArrayToDictionary<T>(
	T[,] array
)

Parameters

array
Type:  T 
The array to convert.
Type Parameters

T
The type of the keys and values in the dictionary.

Return Value

A Dictionary representation of the input array.
See Also