コード例 #1
0
 public static Dictionary <TKey, T> ToDictionary <TKey, T>(this DataTable dataTable, string keyName) where T : new()
 {
     return(DataSerializer.ConvertDataTableToDictionary <TKey, T>(dataTable, keyName));
 }
コード例 #2
0
 public static Dictionary <TKey, TValue> ToDictionary <TKey, TValue>(this DataTable dataTable, string keyName, string valueName)
 {
     return(DataSerializer.ConvertDataTableToDictionary <TKey, TValue>(dataTable, keyName, valueName));
 }