public override int GetHashCode() { unchecked { int hashCode = Thickness.GetHashCode(); hashCode = (hashCode * 397) ^ (StrokeColor != null ? StrokeColor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DashStyle != null ? DashStyle.GetHashCode() : 0); hashCode = (hashCode * 397) ^ DashCap.GetHashCode(); hashCode = (hashCode * 397) ^ StartLineCap.GetHashCode(); hashCode = (hashCode * 397) ^ EndLineCap.GetHashCode(); hashCode = (hashCode * 397) ^ LineJoin.GetHashCode(); return(hashCode); } }
protected bool Equals(StrokeStyle other) { return(Thickness.Equals(other.Thickness) && Equals(StrokeColor, other.StrokeColor) && Equals(DashStyle, other.DashStyle) && DashCap.Equals(other.DashCap) && StartLineCap.Equals(other.StartLineCap) && EndLineCap.Equals(other.EndLineCap) && LineJoin.Equals(other.LineJoin)); }