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"); }
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"); }