Exemplo n.º 1
0
        /// <summary>
        /// Porównuje czy jeden System.Object jest równy drugiemu.
        /// </summary>
        /// <param name="o">System.Object do porównania.</param>
        /// <returns>Równy czy nie.</returns>
        public override bool Equals(object obj)
        {
            CompositeModification other = obj as CompositeModification;

            if (other != null)
            {
                return(Equals(other));
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Porównuje czy jeden obiekt CompositeModification jest równy drugiemu.
        /// </summary>
        /// <param name="other">Obiekt Selection do porównania.</param>
        /// <returns>Równy czy nie.</returns>
        public bool Equals(CompositeModification other)
        {
            if (other != null)
            {
                var  thisMods  = new HashSet <IModification>(this.modifications);
                bool areEquals = thisMods.SetEquals(other.modifications);

                return(areEquals);
            }
            else
            {
                return(false);
            }
        }