ImmutableArray.ToImmutableArray Yöntem

Tanım

Aşırı Yüklemeler

ToImmutableArray<TSource>(IEnumerable<TSource>)

Belirtilen koleksiyondan sabit bir dizi oluşturur.Creates an immutable array from the specified collection.

ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder)

Oluşturucunun dizisinin geçerli içeriğinden sabit bir dizi oluşturur.Creates an immutable array from the current contents of the builder's array.

ToImmutableArray<TSource>(IEnumerable<TSource>)

Belirtilen koleksiyondan sabit bir dizi oluşturur.Creates an immutable array from the specified collection.

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);
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)

Tür Parametreleri

TSource

İçinde yer alan öğelerin türü items .The type of elements contained in items.

Parametreler

items
IEnumerable<TSource>

Sabit diziye kopyalanacak nesne koleksiyonu.The collection of objects to copy to the immutable array.

Döndürülenler

ImmutableArray<TSource>

Belirtilen nesne koleksiyonunu içeren sabit bir dizi.An immutable array that contains the specified collection of objects.

Şunlara uygulanır

ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder)

Oluşturucunun dizisinin geçerli içeriğinden sabit bir dizi oluşturur.Creates an immutable array from the current contents of the builder's array.

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

Tür Parametreleri

TSource

Sabit dizide bulunan öğelerin türü.The type of elements contained in the immutable array.

Parametreler

builder
ImmutableArray<TSource>.Builder

İçinden değişmez diziyi oluşturmak için Oluşturucu.The builder to create the immutable array from.

Döndürülenler

ImmutableArray<TSource>

Oluşturucunun dizisinin geçerli içeriğini içeren sabit bir dizi.An immutable array that contains the current contents of the builder's array.

Şunlara uygulanır