예제 #1
0
        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;
            }
        }
예제 #2
0
 public static Duration operator -(Timestamp t1, Timestamp t2)
 {
     return(Duration.FromMilliseconds(t1.ticks - t2.ticks));
 }