Compartilhar via


ImmutableQueue.Dequeue<T>(IImmutableQueue<T>, T) Método

Definição

Remove o item no início da fila imutável e retorna a nova fila.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::IImmutableQueue<T> ^ Dequeue(System::Collections::Immutable::IImmutableQueue<T> ^ queue, [Runtime::InteropServices::Out] T % value);
public static System.Collections.Immutable.IImmutableQueue<T> Dequeue<T> (this System.Collections.Immutable.IImmutableQueue<T> queue, out T value);
static member Dequeue : System.Collections.Immutable.IImmutableQueue<'T> * 'T -> System.Collections.Immutable.IImmutableQueue<'T>
<Extension()>
Public Function Dequeue(Of T) (queue As IImmutableQueue(Of T), ByRef value As T) As IImmutableQueue(Of T)

Parâmetros de tipo

T

O tipo de elementos na fila imutável.

Parâmetros

queue
IImmutableQueue<T>

A fila da qual remover o item.

value
T

Quando este método retorna, ele contém o item do início da fila.

Retornos

A nova fila com o item removido.

Exceções

A pilha está vazia.

Aplica-se a