コード例 #1
0
        public static IRecordSerializer GetSerializer(ORecordFormat format)
        {
            switch (format)
            {
                case ORecordFormat.ORecordDocument2csv:
                    return new RecordCSVSerializer(null);

                case ORecordFormat.ORecordSerializerBinary:
                    return new RecordBinarySerializer(null);
            }
            throw new NotImplementedException("The " + format + " serializer not implemented it");
        }
コード例 #2
0
        public static IRecordSerializer GetSerializer(ORecordFormat format)
        {
            switch (format)
            {
            case ORecordFormat.ORecordDocument2csv:
                return(new RecordCSVSerializer(null));

            case ORecordFormat.ORecordSerializerBinary:
                return(new RecordBinarySerializer(null));
            }
            throw new NotImplementedException("The " + format + " serializer not implemented it");
        }