コード例 #1
0
        private static RouteWithDistanceFromStart StartRoute(City origin)
        {
            var initialRoute = new RouteWithDistanceFromStart();

            initialRoute.AppendCity(origin, 0);
            return(initialRoute);
        }
コード例 #2
0
            public object Clone()
            {
                var clone = new RouteWithDistanceFromStart();

                foreach (var city in Cities)
                {
                    clone.AppendCity(city, 0);
                }
                clone.DistanceFromStart = DistanceFromStart;
                return(clone);
            }
コード例 #3
0
 private static RouteWithDistanceFromStart StartRoute(City origin)
 {
     var initialRoute = new RouteWithDistanceFromStart();
     initialRoute.AppendCity(origin, 0);
     return initialRoute;
 }
コード例 #4
0
 public object Clone()
 {
     var clone = new RouteWithDistanceFromStart();
     foreach (var city in Cities)
         clone.AppendCity(city, 0);
     clone.DistanceFromStart = DistanceFromStart;
     return clone;
 }