ImmutableStack.CreateRange<T>(IEnumerable<T>) 方法
定义
创建包含指定项的新不可变堆栈。Creates a new immutable stack that contains the specified items.
public:
generic <typename T>
static System::Collections::Immutable::ImmutableStack<T> ^ CreateRange(System::Collections::Generic::IEnumerable<T> ^ items);
public static System.Collections.Immutable.ImmutableStack<T> CreateRange<T> (System.Collections.Generic.IEnumerable<T> items);
static member CreateRange : seq<'T> -> System.Collections.Immutable.ImmutableStack<'T>
Public Function CreateRange(Of T) (items As IEnumerable(Of T)) As ImmutableStack(Of T)
类型参数
- T
堆栈中项的类型。The type of items in the stack.
参数
- items
- IEnumerable<T>
在堆栈不可变之前要添加到该堆栈的项。The items to add to the stack before it's immutable.
返回
包含指定项的不可变堆栈。An immutable stack that contains the specified items.