public override int GetHashCode() { unchecked { var hashCode = colors.hashList(); hashCode = (hashCode * 397) ^ stops.hashList(); hashCode = (hashCode * 397) ^ (center != null ? center.GetHashCode() : 0); hashCode = (hashCode * 397) ^ radius.GetHashCode(); hashCode = (hashCode * 397) ^ (int)tileMode; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = colors.hashList(); hashCode = (hashCode * 397) ^ stops.hashList(); hashCode = (hashCode * 397) ^ (begin != null ? begin.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (end != null ? end.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)tileMode; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (image != null ? image.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (colorFilter != null ? colorFilter.GetHashCode() : 0); hashCode = (hashCode * 397) ^ fit.GetHashCode(); hashCode = (hashCode * 397) ^ (alignment != null ? alignment.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (centerSlice != null ? centerSlice.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)repeat; return(hashCode); } }