Exemplo n.º 1
0
        public bool Equals(OpportunityDetail other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DetailId == other.DetailId ||
                     DetailId != null &&
                     DetailId.Equals(other.DetailId)
                     ) &&
                 (
                     TextValue == other.TextValue ||
                     TextValue != null &&
                     TextValue.Equals(other.TextValue)
                 ) &&
                 (
                     DttmValue == other.DttmValue ||
                     DttmValue != null &&
                     DttmValue.Equals(other.DttmValue)
                 ) &&
                 (
                     IntValue == other.IntValue ||
                     IntValue != null &&
                     IntValue.Equals(other.IntValue)
                 ));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 41;
         if (DetailId != null)
         {
             hash = hash * 59 + DetailId.GetHashCode();
         }
         if (TextValue != null)
         {
             hash = hash * 59 + TextValue.GetHashCode();
         }
         if (DttmValue != null)
         {
             hash = hash * 59 + DttmValue.GetHashCode();
         }
         if (IntValue != null)
         {
             hash = hash * 59 + IntValue.GetHashCode();
         }
         return(hash);
     }
 }