Mercurial > hg > Database > jungle-sharp
diff src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle-network/operations/NetworkNodePath.cs @ 13:4c8932dad7b2
Add Test and only NetworkTreeOperationLogTest.cs not work.
author | Kazuma |
---|---|
date | Sun, 23 Oct 2016 13:35:21 +0900 |
parents | b71d9ea6bd8e |
children |
line wrap: on
line diff
--- a/src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle-network/operations/NetworkNodePath.cs Sun Oct 23 12:25:57 2016 +0900 +++ b/src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle-network/operations/NetworkNodePath.cs Sun Oct 23 13:35:21 2016 +0900 @@ -21,10 +21,6 @@ this.Path = path; } - public IEnumerator<int> iterator () { // iterator error. - yield return this.Path.GetEnumerator().Current; - } - IEnumerator IEnumerable.GetEnumerator() { return this.GetEnumerator(); @@ -32,7 +28,7 @@ public IEnumerator<int> GetEnumerator() { - return iterator (); + yield return this.Path.GetEnumerator().Current; } public NodePath add (int pos) {