ImmutableArray.ToImmutableArray Méthode

Définition

Surcharges

ToImmutableArray<T>(ReadOnlySpan<T>)

Produit un tableau immuable de contenu à partir d’éléments spécifiés.

ToImmutableArray<T>(Span<T>)

Convertit l’étendue en tableau immuable.

ToImmutableArray<TSource>(IEnumerable<TSource>)

Crée un tableau immuable à partir de la collection spécifiée.

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

Crée un tableau immuable à partir du contenu actuel du tableau du générateur.

ToImmutableArray<T>(ReadOnlySpan<T>)

Produit un tableau immuable de contenu à partir d’éléments spécifiés.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<T> ToImmutableArray(ReadOnlySpan<T> items);
public static System.Collections.Immutable.ImmutableArray<T> ToImmutableArray<T> (this ReadOnlySpan<T> items);
static member ToImmutableArray : ReadOnlySpan<'T> -> System.Collections.Immutable.ImmutableArray<'T>
<Extension()>
Public Function ToImmutableArray(Of T) (items As ReadOnlySpan(Of T)) As ImmutableArray(Of T)

Paramètres de type

T

Type d’élément dans la liste.

Paramètres

items
ReadOnlySpan<T>

Éléments à stocker dans le tableau.

Retours

ImmutableArray<T>

Tableau immuable contenant les éléments dans l’étendue.

S’applique à

ToImmutableArray<T>(Span<T>)

Convertit l’étendue en tableau immuable.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<T> ToImmutableArray(Span<T> items);
public static System.Collections.Immutable.ImmutableArray<T> ToImmutableArray<T> (this Span<T> items);
static member ToImmutableArray : Span<'T> -> System.Collections.Immutable.ImmutableArray<'T>
<Extension()>
Public Function ToImmutableArray(Of T) (items As Span(Of T)) As ImmutableArray(Of T)

Paramètres de type

T

Type d’élément dans la liste.

Paramètres

items
Span<T>

Éléments à stocker dans le tableau.

Retours

ImmutableArray<T>

Tableau immuable contenant les éléments dans l’étendue.

S’applique à

ToImmutableArray<TSource>(IEnumerable<TSource>)

Crée un tableau immuable à partir de la collection spécifiée.

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)

Paramètres de type

TSource

Type d’éléments contenus dans items.

Paramètres

items
IEnumerable<TSource>

Collection d’objets à copier dans le tableau immuable.

Retours

ImmutableArray<TSource>

Tableau immuable qui contient la collection d’objets spécifiée.

S’applique à

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

Crée un tableau immuable à partir du contenu actuel du tableau du générateur.

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

Paramètres de type

TSource

Type d’éléments contenus dans le tableau immuable.

Paramètres

builder
ImmutableArray<TSource>.Builder

Générateur à partir duquel créer le tableau immuable.

Retours

ImmutableArray<TSource>

Tableau immuable qui contient le contenu actuel du tableau du générateur.

S’applique à