コード例 #1
0
 /// <summary>
 /// Converts the contents of the data row via casting to their proper objects.
 /// </summary>
 public static Tuple <T1, T2, T3> CastResults <T1, T2, T3>(IDataRow row)
 {
     return(new Tuple <T1, T2, T3>(row.GetByColumnIndex <T1>(0), row.GetByColumnIndex <T2>(1), row.GetByColumnIndex <T3>(2)));
 }
コード例 #2
0
 /// <summary>
 /// Converts the contents of the data row via casting to their proper objects.
 /// </summary>
 public static T1 CastResults <T1>(IDataRow row)
 {
     return(row.GetByColumnIndex <T1>(0));
 }