Пример #1
0
        /// <overloads>
        /// Specifies whether this <see cref="AffineAxisInfo"/> and the specified
        /// argument contains the same orientations.
        /// </overloads>
        /// <summary>
        /// Specifies whether this <see cref="AffineAxisInfo"/> contains the
        /// same orientations as the specified <see cref="AffineAxisInfo"/>.
        /// </summary>
        /// <param name="obj">The <see cref="AffineAxisInfo"/> to test.</param>
        /// <returns>
        /// This method returns true if obj has the same orientations as this instance.
        /// </returns>
        public bool Equals(AffineAxisInfo obj)
        {
            if ((obj.m_enumHorizontal == m_enumHorizontal) &&
                (obj.m_enumVertical == m_enumVertical))
            {
                return(true);
            }

            return(false);
        }
Пример #2
0
        /// <summary>
        /// Specifies whether this <see cref="AffineAxisInfo"/> contains the
        /// same orientations as the specified <see cref="System.Object"/>.
        /// </summary>
        /// <param name="obj">The <see cref="System.Object"/> to test.</param>
        /// <returns>
        /// This method returns true if obj is a <see cref="AffineAxisInfo"/>
        /// and has the same orientations as this instance.
        /// </returns>
        public override bool Equals(object obj)
        {
            if (obj.GetType() != typeof(AffineAxisInfo))
            {
                return(false);
            }

            AffineAxisInfo axisInfo = (AffineAxisInfo)obj;

            return(Equals(axisInfo));
        }