myDirection = Convert.ToDouble (Console.ReadLine());错了
应该是Convert.ToInt32 (Console.ReadLine());
因为myDirection 你声明的就是int类型的,在这里你给它赋值了一个Double类型的,而double不能隐式转换为int
myRoute.distance = myDistance ;
改成:
myRoute.distance = (double)myDistance ;
但是你的myDistance是int类型的,为什么不把distance声明成int呢?
myDirection = Convert.ToDouble (Console.ReadLine());
改为
myDirection = Convert.ToInt32 (Console.ReadLine());