Exemplo n.º 1
0
        /// <summary>
        /// Determines whether the specified <see cref="T:System.Object" /> is equal
        /// to the current <see cref="T:System.Object" />.
        /// </summary>
        /// <param name="obj">The object to compare with the current object.</param>
        /// <returns>
        /// true if the specified object  is equal to the current object; otherwise,
        /// false.
        /// </returns>
        public override bool Equals(object obj)
        {
            BusinessPartner temp = obj as BusinessPartner;

            if (temp == null)
            {
                return(false);
            }
            return(this.Equals(temp));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Equalses the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public bool Equals(BusinessPartner value)
 {
     if (ReferenceEquals(null, value))
     {
         return(false);
     }
     if (ReferenceEquals(this, value))
     {
         return(true);
     }
     return(this.ID == value.ID &&
            Equals(this.Name, value.Name) &&
            Equals(this.VatRegNumber, value.VatRegNumber) &&
            Equals(this.City, value.City) &&
            Equals(this.Address, value.Address) &&
            Equals(this.Owner, value.Owner) &&
            Equals(this.PhoneNumber, value.PhoneNumber) &&
            Equals(this.Email, value.Email));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Equalses the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public bool Equals(BusinessPartner value)
 {
     if (ReferenceEquals(null, value))
     {
         return false;
     }
     if (ReferenceEquals(this, value))
     {
         return true;
     }
     return this.ID == value.ID &&
            Equals(this.Name, value.Name) &&
            Equals(this.VatRegNumber, value.VatRegNumber) &&
            Equals(this.City, value.City) &&
            Equals(this.Address, value.Address) &&
            Equals(this.Owner, value.Owner) &&
            Equals(this.PhoneNumber, value.PhoneNumber) &&
            Equals(this.Email, value.Email);
 }