Example #1
0
        /// <summary>
        /// Compares two PixelValuePairs for equality.
        /// </summary>
        /// <param name="IPixelValuePair">A PixelValuePair to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public Boolean Equals(IPixelValuePair <T, TValue> IPixelValuePair)
        {
            if ((Object)IPixelValuePair == null)
            {
                return(false);
            }

            return(X.Equals(IPixelValuePair.X) &&
                   Y.Equals(IPixelValuePair.Y));
        }
Example #2
0
 /// <summary>
 /// Compares two instances of this object.
 /// </summary>
 /// <param name="IPixelValuePair">An object to compare with.</param>
 public Int32 CompareTo(IPixelValuePair <T, TValue> IPixelValuePair)
 {
     return(base.CompareTo(IPixelValuePair));
 }