Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 public virtual void Read(ArrayRecord arrRec)
 {
 }
Ejemplo n.º 3
0
 public virtual void Read(ArrayRecord arrRec)
 {
     throw new InvalidOperationException();
 }