ImmutableQueue.Create Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
- 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
.NET 9 och andra versioner
Produkt | Versioner |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- 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
.NET 9 och andra versioner
Produkt | Versioner |
---|---|
.NET | 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- 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
.NET 9 och andra versioner
Produkt | Versioner |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- 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
.NET 9 och andra versioner
Produkt | Versioner |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: