Ejemplo n.º 1
0
 /// 
 /// This function will append to the end of the PaymentQueue or 
 /// create the first Node instance.
 /// 
 ///  
 public void append(PaymentRecord obj)
 {
     if (count == 0)
     {
         front = end = new Node(obj, front);
     }
     else
     {
         end.Next = new Node(obj, end.Next);
         end = end.Next;
     }
     count++;
 }
Ejemplo n.º 2
0
 public Node(PaymentRecord value, Node next)
 {
     Next = next;
     Value = value;
 }