Example #1
0
 /// <summary>
 /// Checks to see if the top of the queue has changed.
 /// </summary>
 /// <returns>true or false</returns>
 public bool TopChanged()
 {
     if (top != previousTop)
     {
         previousTop = top;
         top         = Registrants.Peek();
         return(true);
     }
     return(false);
 }
Example #2
0
 /// <summary>
 /// Peeks this instance.
 /// </summary>
 /// <returns>Registrants.Peek()</returns>
 public Registrant Peek()
 {
     return(Registrants.Peek());
 }