public Brush GetBrush(BranchName name) { int branchBrushId = (Math.Abs(name.GetHashCode()) % (brushes.Count - 2)) + 2; return(brushes[branchBrushId]); }
public override int GetHashCode() { return(TopoID.GetHashCode() * BranchName.GetHashCode() * Chainage.GetHashCode()); }