コード例 #1
0
 public void Copy(IStackWriter <V> target)
 {
     for (Node n = top; n != null; n = n.Previous)
     {
         target.Push(n.Value);
     }
 }
コード例 #2
0
 public void Copy(IStackWriter <V> target)
 {
     for (Node n = top; n != null; n = n.below)
     {
         target.Push(n.value);
     }
 }