public static Dictionary <TKey, T> ToDictionary <TKey, T>(this DataTable dataTable, string keyName) where T : new() { return(DataSerializer.ConvertDataTableToDictionary <TKey, T>(dataTable, keyName)); }
public static Dictionary <TKey, TValue> ToDictionary <TKey, TValue>(this DataTable dataTable, string keyName, string valueName) { return(DataSerializer.ConvertDataTableToDictionary <TKey, TValue>(dataTable, keyName, valueName)); }