Beispiel #1
0
        public override bool GetValue(object currentValue, out object value)
        {
            value = null;
            if (currentValue != null)
            {
                return(false);
            }

            value = new MessageTimestamp(DateTime.Now);
            return(true);
        }
Beispiel #2
0
 public bool Equals(MessageTimestamp other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(other._value.Equals(_value));
 }