Пример #1
0
 public bool IsSameSession(Origin o)
 {
     return((SessionID.Equals(o.SessionID)) &&
            (UserName.Equals(o.UserName)) &&
            (NetworkType.Equals(o.NetworkType)) &&
            (AddressType.Equals(o.AddressType)) &&
            (Address.Equals(o.Address)));
 }
Пример #2
0
        public override bool Equals(Object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }
            Photo photoObj = obj as Photo;

            return(PhotoID.Equals(PhotoID) && SessionID.Equals(SessionID) && Image.Equals(Image) &&
                   TimeStamp.Equals(TimeStamp));
        }
Пример #3
0
        public override bool Equals(Object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }
            Pulse pulseObj = obj as Pulse;

            return(SessionID.Equals(pulseObj.SessionID) && BPM.Equals(pulseObj.BPM) &&
                   TimeStamp.Equals(pulseObj.TimeStamp));
        }
Пример #4
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public bool Equals(IDebugState other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(ID.Equals(other.ID) && SessionID.Equals(other.SessionID));
 }
        public override bool Equals(System.Object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            Pair pair = (Pair)obj;

            return
                (clOrdID.Equals(pair.clOrdID) &&
                 sessionID.Equals(pair.sessionID));
        }
        /// <summary>
        /// Returns true if DocuViewareGetControlParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of DocuViewareGetControlParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DocuViewareGetControlParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     SessionID == input.SessionID ||
                     (SessionID != null &&
                      SessionID.Equals(input.SessionID))
                     ) &&
                 (
                     ControlState == input.ControlState ||
                     (ControlState != null &&
                      ControlState.Equals(input.ControlState))
                 ));
        }