public override int GetHashCode() { return(string.Concat(FillColor.ToString(), StrokeColor.ToString(), StrokeWidth.GetHashCode()).GetHashCode()); //return ComputeStringHash(FillColor, StrokeColor, StrokeWidth); //unchecked //{ // int hash = FillColor.ToString().GetHashCode(); // // Maybe nullity checks, if these are objects not primitives! // hash = hash * 29 + StrokeColor.ToString().GetHashCode(); // hash = hash * 29 + StrokeWidth.ToString().GetHashCode(); // return hash; //} }
public override int GetHashCode() { return(StrokeWidth.GetHashCode() ^ Color.GetHashCode()); }