public override void Read(ReadArgs args) { args.SetValues(); args.CurrentSeqNo = ExpectNextSeqNo(args); int readChar = args.ReadOne(); if (readChar == iRefPrefix) { args.State = ReaderInstance.Singleton; } else if (readChar == iArray) { readChar = args.ReadOne(); if (readChar != iFieldSep) { throw Error.Unexpected(ErrorCode.UnexpectedChars, FieldSeparator, readChar); } ArrayRecord rec = new ArrayRecord(args.CurrentSeqNo); args.SetupRecord(rec); args.Read.Read(rec); args.State = ReaderField.Singleton; } else if (readChar == iStringEncl) { args.State = ReaderTypeDef.Singleton; } else { throw new Error(ErrorCode.UnknownRecordType).AddData(ErrorDataKeys.Actual, readChar); } }
public virtual void Read(ArrayRecord arrRec) { }
public virtual void Read(ArrayRecord arrRec) { throw new InvalidOperationException(); }