Bewerken

Delen via


ImmutableStack.Create Method

Definition

Overloads

Create<T>()

Creates an empty immutable stack.

Create<T>(ReadOnlySpan<T>)

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

Create<T>(T)

Creates a new immutable stack that contains the specified item.

Create<T>(T[])

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

Create<T>()

Source:
ImmutableStack.cs
Source:
ImmutableStack.cs
Source:
ImmutableStack.cs

Creates an empty immutable stack.

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

Type Parameters

T

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

Returns

An empty immutable stack.

Applies to

Create<T>(ReadOnlySpan<T>)

Source:
ImmutableStack.cs
Source:
ImmutableStack.cs

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

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

Type Parameters

T

The type of items in the immutable stack.

Parameters

items
ReadOnlySpan<T>

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

Returns

A new immutable stack that contains the specified items.

Applies to

Create<T>(T)

Source:
ImmutableStack.cs
Source:
ImmutableStack.cs
Source:
ImmutableStack.cs

Creates a new immutable stack that contains the specified item.

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

Type Parameters

T

The type of items in the immutable stack.

Parameters

item
T

The item to prepopulate the stack with.

Returns

A new immutable collection that contains the specified item.

Applies to

Create<T>(T[])

Source:
ImmutableStack.cs
Source:
ImmutableStack.cs
Source:
ImmutableStack.cs

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

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

Type Parameters

T

The type of items in the immutable stack.

Parameters

items
T[]

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

Returns

A new immutable stack that contains the specified items.

Applies to