ImmutableArray.ToImmutableArray<TSource> Метод

Определение

Создает неизменяемый массив из указанной коллекции.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<TSource> ToImmutableArray(System::Collections::Generic::IEnumerable<TSource> ^ items);
public static System.Collections.Immutable.ImmutableArray<TSource> ToImmutableArray<TSource>(this System.Collections.Generic.IEnumerable<TSource> items);
static member ToImmutableArray : seq<'Source> -> System.Collections.Immutable.ImmutableArray<'Source>
<Extension()>
Public Function ToImmutableArray(Of TSource) (items As IEnumerable(Of TSource)) As ImmutableArray(Of TSource)

Параметры типа

TSource

Тип элементов, содержащихся в items.

Параметры

items
IEnumerable<TSource>

Коллекция объектов для копирования в неизменяемый массив.

Возвращаемое значение

ImmutableArray<TSource>

Неизменяемый массив, содержащий указанную коллекцию объектов.

Применяется к