Пример #1
0
 /// <summary>
 /// <see cref="System.Object.Equals(object)"/>
 /// </summary>
 public bool Equals(EnrichActivityInfo obj)
 {
     if (obj == null)
     {
         return(false);
     }
     return(ActivityId.Equals(obj.ActivityId) && ContactId.Equals(obj.ContactId));
 }
Пример #2
0
        /// <summary>
        /// <see cref="System.Object.Equals(object)"/>
        /// </summary>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            EnrichActivityInfo objToCompare = obj as EnrichActivityInfo;

            if (objToCompare == null)
            {
                return(false);
            }
            return(ActivityId.Equals(objToCompare.ActivityId) && ContactId.Equals(objToCompare.ContactId));
        }