Exemplo n.º 1
0
 /// <summary>
 /// Sincroniza a fila.
 /// </summary>
 /// <param name="queue"></param>
 /// <returns></returns>
 public static BinaryPriorityQueue Syncronized(BinaryPriorityQueue queue)
 {
     return(new BinaryPriorityQueue(ArrayList.Synchronized(queue._innerList), queue._comparer, false));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Recupera um cópid de somente leitura.
 /// </summary>
 /// <param name="queue"></param>
 /// <returns></returns>
 public static BinaryPriorityQueue ReadOnly(BinaryPriorityQueue queue)
 {
     return(new BinaryPriorityQueue(ArrayList.ReadOnly(queue._innerList), queue._comparer, false));
 }