예제 #1
0
 public Node Get(int index)
 {
     if (index == 0)
     {
         return(headNode);
     }
     index--;
     return(headNode.Get(index));
 }
예제 #2
0
 public Node Get(int index)
 {
     if (next == null)
     {
         return(new Node(0));
     }
     else if (index == 0)
     {
         return(this);
     }
     index--;
     return(next.Get(index));
 }