public static char GetAsChar(this IDataRecord dataRecord, int index) { object c = dataRecord.GetValue(index); return(TypeConvert.ToChar(c)); }
/// <summary> /// Returns default value for provided type /// </summary> /// <param name="t"></param> /// <returns></returns> public static object GetDefault(this Type t) { return(TypeConvert.GetDefault(t)); }
public static bool GetAsBool(this IDataRecord dataRecord, int index) { object b = dataRecord.GetValue(index); return(TypeConvert.ToBoolean(b)); }