Example #1
0
 protected bool Equals(IRGBWorkingSpace other)
 {
     if (other == null)
     {
         throw new ArgumentNullException("other");
     }
     return(Equals(WhitePoint, other.WhitePoint) && ChromaticityCoordinates.Equals(other.ChromaticityCoordinates) && Equals(Companding, other.Companding));
 }
Example #2
0
        /// <inheritdoc cref="object" />
        public bool Equals(IRGBWorkingSpace other)
        {
            if (other == null)
            {
                return(false);
            }

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

            return(Equals(WhitePoint, other.WhitePoint) &&
                   ChromaticityCoordinates.Equals(other.ChromaticityCoordinates) &&
                   Companding.Equals(other.Companding));
        }