Bewerken

Delen via


ImmutableQueue.Create Method

Definition

Overloads

Create<T>()

Creates an empty immutable queue.

Create<T>(ReadOnlySpan<T>)

Creates a new immutable queue that contains the specified array of items.

Create<T>(T)

Creates a new immutable queue that contains the specified item.

Create<T>(T[])

Creates a new immutable queue that contains the specified array of items.

Create<T>()

Source:
ImmutableQueue.cs
Source:
ImmutableQueue.cs
Source:
ImmutableQueue.cs
Source:
ImmutableQueue.cs

Creates an empty immutable queue.

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)

Type Parameters

T

The type of items to be stored in the immutable queue.

Returns

An empty immutable queue.

Applies to

Create<T>(ReadOnlySpan<T>)

Source:
ImmutableQueue.cs
Source:
ImmutableQueue.cs
Source:
ImmutableQueue.cs

Creates a new immutable queue that contains the specified array of items.

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);
public static System.Collections.Immutable.ImmutableQueue<T> Create<T> (scoped 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)

Type Parameters

T

The type of items in the immutable queue.

Parameters

items
ReadOnlySpan<T>

A span that contains the items to prepopulate the queue with.

Returns

A new immutable queue that contains the specified items.

Applies to

Create<T>(T)

Source:
ImmutableQueue.cs
Source:
ImmutableQueue.cs
Source:
ImmutableQueue.cs
Source:
ImmutableQueue.cs

Creates a new immutable queue that contains the specified item.

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)

Type Parameters

T

The type of items in the immutable queue.

Parameters

item
T

The item to prepopulate the queue with.

Returns

A new immutable queue that contains the specified item.

Applies to

Create<T>(T[])

Source:
ImmutableQueue.cs
Source:
ImmutableQueue.cs
Source:
ImmutableQueue.cs
Source:
ImmutableQueue.cs

Creates a new immutable queue that contains the specified array of items.

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)

Type Parameters

T

The type of items in the immutable queue.

Parameters

items
T[]

An array that contains the items to prepopulate the queue with.

Returns

A new immutable queue that contains the specified items.

Applies to