Exemplo n.º 1
0
 public bool Equals(PathSegment other)
 {
     return(Length.Equals(other.Length) &&
            StrokeWidth.Equals(other.StrokeWidth) &&
            FgColor.Equals(other.FgColor) &&
            BgColor.Equals(other.BgColor));
 }
Exemplo n.º 2
0
        public bool Equals(Color other)
        {
            if (_none && other._none)
            {
                return(true);
            }

            if (_none != other._none)
            {
                return(false);
            }

            return(_red.Equals(other._red) && _green.Equals(other._green) && _blue.Equals(other._blue));
        }