ImmutableQueue.Dequeue<T>(IImmutableQueue<T>, T) 方法

定義

拿掉不可變佇列開頭的專案,並傳回新的佇列。

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)

類型參數

T

不可變佇列中元素的類型。

參數

queue
IImmutableQueue<T>

取出物品的隊列。

value
T

當此方法回傳時,包含佇列起始的項目。

傳回

新隊伍中物品被移除。

例外狀況

那堆是空的。

適用於