public FlushEvents(pFlushEventsType p) : base(p.Unit, p.Time) { }
public override pFlushEventsType pGetFlushEventsType() { string unit = "Unknown unit"; int time; try { reader.Read(); unit = pGetString(); time = pGetInt(); pFlushEventsType returnValue = new pFlushEventsType(unit, time); reader.ReadEndElement(); return returnValue; } catch (SystemException e) { throw new ApplicationException("Error reading FlushEvents with unit " + unit + ": " + e.Message); } }