public TimestampMatching(Stream stream) { byte version = stream.ReadNextByte(); switch (version) { case 1: m_mode = (TimestampMatchingMode)stream.ReadNextByte(); m_first = stream.ReadDateTime(); m_second = stream.ReadDateTime(); break; default: throw new VersionNotFoundException(); } }
public TimestampMatching(TimestampMatchingMode mode, DateTime first, DateTime second) { m_first = first; m_second = second; m_mode = mode; }