Пример #1
0
        public override int GetHashCode()
        {
            int hashProductNote      = Note == null ? 0 : Note.GetHashCode();
            int hashProductInitiator = Initiator == null ? 0 : Initiator.GetHashCode();

            int hashProductId           = Id.GetHashCode();
            int hashProductIdKeyFeature = IdKeyFeature.GetHashCode();
            int hashProductIdClient     = IdClient.GetHashCode();

            return(hashProductId ^
                   hashProductIdKeyFeature ^
                   hashProductIdClient ^
                   hashProductNote ^
                   hashProductInitiator);
        }
Пример #2
0
        public override bool Equals(object obj)
        {
            if (!(obj is KeyFeatureClient other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Id.Equals(other.Id) &&
                   IdKeyFeature.Equals(other.IdKeyFeature) &&
                   IdClient.Equals(other.IdClient) &&
                   Note.Equals(other.Note) &&
                   Initiator.Equals(other.Initiator));
        }