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 }
public virtual void Read(InstanceRecord instRec) { }
public virtual void Read(InstanceRecord instRec) { throw new InvalidOperationException(); }