回答編集履歴

2

getが小文字になっている箇所修正。

2018/01/11 01:01

投稿

masaya_ohashi
masaya_ohashi

スコア9206

test CHANGED
@@ -170,11 +170,11 @@
170
170
 
171
171
  Node n = nodes[1];
172
172
 
173
- IList<Node> taxiNodes = n.getTaxiNodes();
173
+ IList<Node> taxiNodes = n.GetTaxiNodes();
174
174
 
175
175
  for(Node taxi in taxiNodes) {
176
176
 
177
- Console.WriteLine(taxi.id); // 8 9と出力される
177
+ Console.WriteLine(taxi.GetId()); // 8 9と出力される
178
178
 
179
179
  }
180
180
 

1

一部IListに修正。

2018/01/11 01:01

投稿

masaya_ohashi
masaya_ohashi

スコア9206

test CHANGED
@@ -78,7 +78,7 @@
78
78
 
79
79
 
80
80
 
81
- public List<Node> GetTaxiNodes(){
81
+ public IList<Node> GetTaxiNodes(){
82
82
 
83
83
  return taxi;
84
84
 
@@ -86,7 +86,7 @@
86
86
 
87
87
 
88
88
 
89
- public List<Node> GetBusNodes(){
89
+ public IList<Node> GetBusNodes(){
90
90
 
91
91
  return bus;
92
92
 
@@ -94,7 +94,7 @@
94
94
 
95
95
 
96
96
 
97
- public List<Node> GetSubwayNodes(){
97
+ public IList<Node> GetSubwayNodes(){
98
98
 
99
99
  return subway;
100
100
 
@@ -102,7 +102,7 @@
102
102
 
103
103
 
104
104
 
105
- public List<Node> GetShipNodes(){
105
+ public IList<Node> GetShipNodes(){
106
106
 
107
107
  return ship;
108
108
 
@@ -170,7 +170,7 @@
170
170
 
171
171
  Node n = nodes[1];
172
172
 
173
- List<Node> taxiNodes = n.getTaxiNodes();
173
+ IList<Node> taxiNodes = n.getTaxiNodes();
174
174
 
175
175
  for(Node taxi in taxiNodes) {
176
176