deleting old serializers
This commit is contained in:
1 parent
061481419e
commit
90ec64d25c
74 files changed
+941
-6080
No files matched your search
@@ -221,23 +221,23 @@ namespace BCG {
|
||||
// these are the only types allowed in schemas
|
||||
private static IReadOnlyDictionary<TypeCode, Type> _typecode_to_type = new Dictionary<TypeCode, Type>
|
||||
{
|
||||
{ TypeCode.Boolean, typeof(bool) },
|
||||
{ TypeCode.Byte, typeof(byte) },
|
||||
{ TypeCode.Char, typeof(char) },
|
||||
{ TypeCode.Boolean, typeof(bool) }, //3
|
||||
{ TypeCode.Byte, typeof(byte) }, //6
|
||||
{ TypeCode.Char, typeof(char) }, //4
|
||||
// TODO
|
||||
{ TypeCode.DateTime, typeof(DateTime) },
|
||||
{ TypeCode.Decimal, typeof(decimal) },
|
||||
{ TypeCode.Double, typeof(double) },
|
||||
{ TypeCode.DateTime, typeof(DateTime) },//16
|
||||
{ TypeCode.Decimal, typeof(decimal) }, //15
|
||||
{ TypeCode.Double, typeof(double) }, //14
|
||||
//{ TypeCode.Empty, null },
|
||||
{ TypeCode.Int16, typeof(short) },
|
||||
{ TypeCode.Int32, typeof(int) },
|
||||
{ TypeCode.Int64, typeof(long) },
|
||||
{ TypeCode.SByte, typeof(sbyte) },
|
||||
{ TypeCode.Single, typeof(Single) },
|
||||
{ TypeCode.String, typeof(string) },
|
||||
{ TypeCode.UInt16, typeof(UInt16) },
|
||||
{ TypeCode.UInt32, typeof(UInt32) },
|
||||
{ TypeCode.UInt64, typeof(UInt64) }
|
||||
{ TypeCode.Int16, typeof(short) }, //7
|
||||
{ TypeCode.Int32, typeof(int) }, //9
|
||||
{ TypeCode.Int64, typeof(long) }, //11
|
||||
{ TypeCode.SByte, typeof(sbyte) }, //5
|
||||
{ TypeCode.Single, typeof(Single) }, //13
|
||||
{ TypeCode.String, typeof(string) }, //18
|
||||
{ TypeCode.UInt16, typeof(UInt16) }, //8
|
||||
{ TypeCode.UInt32, typeof(UInt32) }, //10
|
||||
{ TypeCode.UInt64, typeof(UInt64) } //12
|
||||
};
|
||||
|
||||
public static IEnumerable<TypeCode> valid_column_typecodes() {
|
||||
@@ -1139,6 +1139,14 @@ namespace BCG {
|
||||
return ci.colNo + ";" + ci.colName + ";" + ci.colType;
|
||||
}
|
||||
|
||||
public static string to_string(this IBlueRow r) {
|
||||
string rv = String.Empty;
|
||||
foreach (ColumnInfo c in r.schema.columnInfo) {
|
||||
rv += $"{c.colName}: {r[c.colName]}\n";
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
public static void compute_differences_fast(IBlueRowCollection new_rows, IBlueRowCollection old_rows,
|
||||
out IBlueRowCollection out_d_rows, out IBlueRowCollection out_a_rows) {
|
||||
if (old_rows == null || old_rows.Count == 0) {
|
||||
|
||||
Reference in new issue
Block a user