Beispiel #1
0
        //==========================================================================================
        /// <summary>
        /// Returns a value indicating whether this instance is equal to a specified object.
        /// </summary>
        /// <param name="obj">
        /// An object to compare with this instance.
        /// </param>
        /// <returns>
        ///     <see langword="true"/> if <paramref name="obj"/> is a object that represents the same as the current; otherwise, <see langword="false"/>.
        /// </returns>

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }
            VisionException other = (VisionException)obj;

            return(Equals(other));
        }
Beispiel #2
0
        //==========================================================================================
        /// <summary>
        /// Returns a value indicating whether this instance is equal to the specified instance.
        /// </summary>
        /// <param name="other">
        /// A VisionException instance to compare to this instance.</param>
        /// <returns>
        /// </returns>

        public bool Equals(VisionException other)
        {
            return(other != null && _visionErrorCode == other._visionErrorCode && _visionErrorText == other._visionErrorText && Message == other.Message);
        }