Esempio n. 1
0
        public Brush GetBrush(BranchName name)
        {
            int branchBrushId = (Math.Abs(name.GetHashCode()) % (brushes.Count - 2)) + 2;

            return(brushes[branchBrushId]);
        }
Esempio n. 2
0
 public override int GetHashCode()
 {
     return(TopoID.GetHashCode() * BranchName.GetHashCode() * Chainage.GetHashCode());
 }