コード例 #1
0
        private void InsertLegacySerializer(ColumnTypeCode typeCode, ITypeAdapter typeAdapter, bool reverse)
        {
            var type             = typeAdapter.GetDataType();
            var legacySerializer = new LegacyTypeSerializer(typeCode, typeAdapter, reverse);

            _primitiveSerializers[type]       = legacySerializer;
            _primitiveDeserializers[typeCode] = legacySerializer;
            _defaultTypes[typeCode]           = _ => type;
        }
コード例 #2
0
ファイル: Serializer.cs プロジェクト: alprema/csharp-driver
 private void InsertLegacySerializer(ColumnTypeCode typeCode, ITypeAdapter typeAdapter, bool reverse)
 {
     var type = typeAdapter.GetDataType();
     var legacySerializer = new LegacyTypeSerializer(typeCode, typeAdapter, reverse);
     _primitiveSerializers[type] = legacySerializer;
     _primitiveDeserializers[typeCode] = legacySerializer;
     _defaultTypes[typeCode] = _ => type;
 }