public void BinDeserialize(BinaryReader reader) { BaseBinDeserialize(reader); if (MemberPresent == reader.ReadByte()) { Values = VariableValue_Serializer.Deserialize(reader); } byte timeOutState = reader.ReadByte(); if (MemberPresent == timeOutState) { Timeout = Duration.FromMilliseconds(reader.ReadInt64()); } else if (MemberNull == timeOutState) { Timeout = null; } }
public static Duration operator -(Timestamp t1, Timestamp t2) { return(Duration.FromMilliseconds(t1.ticks - t2.ticks)); }