示例#1
0
        public override void Read(ReadArgs args)
        {
            Record refRec = base.ReadRef(args, false);

            if (refRec.RecType != RecordType.TypeDef)
            {
                throw Error.Unexpected(ErrorCode.UnexpectedRecordType, RecordType.TypeDef, refRec.RecType);
            }

            TypeDefRecord  refType = refRec as TypeDefRecord;
            InstanceRecord rec     = new InstanceRecord(args.CurrentSeqNo, refType);

            args.SetupRecord(rec);
            args.Read.Read(rec);

            // base.ReadRef must have already set the next state
        }
示例#2
0
 public virtual void Read(InstanceRecord instRec)
 {
 }
示例#3
0
 public virtual void Read(InstanceRecord instRec)
 {
     throw new InvalidOperationException();
 }