ImmutableQueue.Create 方法

定義

多載

Create<T>()

建立空的不可變佇列。

Create<T>(ReadOnlySpan<T>)

建立新的不可變佇列,其中包含指定的項目陣列。

Create<T>(T)

建立新的不可變佇列,其中包含指定的項目。

Create<T>(T[])

建立新的不可變佇列,其中包含指定的項目陣列。

Create<T>()

建立空的不可變佇列。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableQueue<T> ^ Create();
public static System.Collections.Immutable.ImmutableQueue<T> Create<T> ();
static member Create : unit -> System.Collections.Immutable.ImmutableQueue<'T>
Public Function Create(Of T) () As ImmutableQueue(Of T)

類型參數

T

要儲存於不可變佇列中的項目類型。

傳回

空的不可變佇列。

適用於

Create<T>(ReadOnlySpan<T>)

建立新的不可變佇列,其中包含指定的項目陣列。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableQueue<T> ^ Create(ReadOnlySpan<T> items);
public static System.Collections.Immutable.ImmutableQueue<T> Create<T> (ReadOnlySpan<T> items);
static member Create : ReadOnlySpan<'T> -> System.Collections.Immutable.ImmutableQueue<'T>
Public Function Create(Of T) (items As ReadOnlySpan(Of T)) As ImmutableQueue(Of T)

類型參數

T

不可變佇列中的項目類型。

參數

items
ReadOnlySpan<T>

範圍,包含要預先填入佇列的專案。

傳回

新的不可變佇列,其中包含指定的項目。

適用於

Create<T>(T)

建立新的不可變佇列,其中包含指定的項目。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableQueue<T> ^ Create(T item);
public static System.Collections.Immutable.ImmutableQueue<T> Create<T> (T item);
static member Create : 'T -> System.Collections.Immutable.ImmutableQueue<'T>
Public Function Create(Of T) (item As T) As ImmutableQueue(Of T)

類型參數

T

不可變佇列中的項目類型。

參數

item
T

要預先填入佇列的項目。

傳回

新的不可變佇列,其中包含指定的項目。

適用於

Create<T>(T[])

建立新的不可變佇列,其中包含指定的項目陣列。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableQueue<T> ^ Create(... cli::array <T> ^ items);
public static System.Collections.Immutable.ImmutableQueue<T> Create<T> (params T[] items);
static member Create : 'T[] -> System.Collections.Immutable.ImmutableQueue<'T>
Public Function Create(Of T) (ParamArray items As T()) As ImmutableQueue(Of T)

類型參數

T

不可變佇列中的項目類型。

參數

items
T[]

陣列,其中包含要預先填入佇列的項目。

傳回

新的不可變佇列,其中包含指定的項目。

適用於