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.03)

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


Type:  T 
The array to convert.
Type Parameters

The type of the keys and values in the dictionary.

Return Value

A Dictionary representation of the input array.
See Also