Share via


ImmutableSortedSet.Create Método

Definição

Sobrecargas

Create<T>()

Cria um conjunto classificado imutável vazio.

Create<T>(IComparer<T>)

Cria um conjunto classificado imutável vazio que usa o comparador especificado.

Create<T>(ReadOnlySpan<T>)

Cria um novo conjunto classificado imutável que contém a matriz de itens especificada.

Create<T>(T)

Cria um novo conjunto classificado imutável que contém o item especificado.

Create<T>(T[])

Cria um novo conjunto classificado imutável que contém a matriz de itens especificada.

Create<T>(IComparer<T>, ReadOnlySpan<T>)

Cria uma nova coleção imutável pré-preenchida com os itens especificados.

Create<T>(IComparer<T>, T)

Cria um novo conjunto classificado imutável que contém o item especificado e usa o comparador especificado.

Create<T>(IComparer<T>, T[])

Cria um novo conjunto classificado imutável que contém a matriz de itens especificada e usa o comparador especificado.

Create<T>()

Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs

Cria um conjunto classificado imutável vazio.

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

Parâmetros de tipo

T

O tipo de itens a serem armazenados no conjunto imutável.

Retornos

Um conjunto classificado imutável vazio.

Aplica-se a

Create<T>(IComparer<T>)

Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs

Cria um conjunto classificado imutável vazio que usa o comparador especificado.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableSortedSet<T> ^ Create(System::Collections::Generic::IComparer<T> ^ comparer);
public static System.Collections.Immutable.ImmutableSortedSet<T> Create<T> (System.Collections.Generic.IComparer<T> comparer);
public static System.Collections.Immutable.ImmutableSortedSet<T> Create<T> (System.Collections.Generic.IComparer<T>? comparer);
static member Create : System.Collections.Generic.IComparer<'T> -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function Create(Of T) (comparer As IComparer(Of T)) As ImmutableSortedSet(Of T)

Parâmetros de tipo

T

O tipo de itens no conjunto imutável.

Parâmetros

comparer
IComparer<T>

A implementação a ser usada ao comparar os itens no conjunto.

Retornos

Um conjunto imutável vazio.

Aplica-se a

Create<T>(ReadOnlySpan<T>)

Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs

Cria um novo conjunto classificado imutável que contém a matriz de itens especificada.

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

Parâmetros de tipo

T

O tipo de itens no conjunto imutável.

Parâmetros

items
ReadOnlySpan<T>

Um intervalo que contém os itens com os quais preencher previamente o conjunto.

Retornos

Um novo conjunto imutável que contém os itens especificados.

Aplica-se a

Create<T>(T)

Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs

Cria um novo conjunto classificado imutável que contém o item especificado.

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

Parâmetros de tipo

T

O tipo de itens no conjunto imutável.

Parâmetros

item
T

O item com o qual preencher previamente o conjunto.

Retornos

Um novo conjunto imutável que contém o item especificado.

Aplica-se a

Create<T>(T[])

Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs

Cria um novo conjunto classificado imutável que contém a matriz de itens especificada.

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

Parâmetros de tipo

T

O tipo de itens no conjunto imutável.

Parâmetros

items
T[]

Uma matriz que contém os itens com os quais preencher previamente o conjunto.

Retornos

Um novo conjunto imutável que contém os itens especificados.

Aplica-se a

Create<T>(IComparer<T>, ReadOnlySpan<T>)

Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs

Cria uma nova coleção imutável pré-preenchida com os itens especificados.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableSortedSet<T> ^ Create(System::Collections::Generic::IComparer<T> ^ comparer, ReadOnlySpan<T> items);
public static System.Collections.Immutable.ImmutableSortedSet<T> Create<T> (System.Collections.Generic.IComparer<T>? comparer, ReadOnlySpan<T> items);
static member Create : System.Collections.Generic.IComparer<'T> * ReadOnlySpan<'T> -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function Create(Of T) (comparer As IComparer(Of T), items As ReadOnlySpan(Of T)) As ImmutableSortedSet(Of T)

Parâmetros de tipo

T

O tipo de itens armazenados pela coleção.

Parâmetros

comparer
IComparer<T>

O comparador.

items
ReadOnlySpan<T>

Os itens a serem preenchidos previamente.

Retornos

A nova coleção imutável.

Aplica-se a

Create<T>(IComparer<T>, T)

Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs

Cria um novo conjunto classificado imutável que contém o item especificado e usa o comparador especificado.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableSortedSet<T> ^ Create(System::Collections::Generic::IComparer<T> ^ comparer, T item);
public static System.Collections.Immutable.ImmutableSortedSet<T> Create<T> (System.Collections.Generic.IComparer<T> comparer, T item);
public static System.Collections.Immutable.ImmutableSortedSet<T> Create<T> (System.Collections.Generic.IComparer<T>? comparer, T item);
static member Create : System.Collections.Generic.IComparer<'T> * 'T -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function Create(Of T) (comparer As IComparer(Of T), item As T) As ImmutableSortedSet(Of T)

Parâmetros de tipo

T

O tipo de itens armazenados no conjunto imutável.

Parâmetros

comparer
IComparer<T>

A implementação a ser usada ao comparar os itens no conjunto.

item
T

O item com o qual preencher previamente o conjunto.

Retornos

Um novo conjunto imutável que contém o item especificado.

Aplica-se a

Create<T>(IComparer<T>, T[])

Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs
Origem:
ImmutableSortedSet.cs

Cria um novo conjunto classificado imutável que contém a matriz de itens especificada e usa o comparador especificado.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableSortedSet<T> ^ Create(System::Collections::Generic::IComparer<T> ^ comparer, ... cli::array <T> ^ items);
public static System.Collections.Immutable.ImmutableSortedSet<T> Create<T> (System.Collections.Generic.IComparer<T> comparer, params T[] items);
public static System.Collections.Immutable.ImmutableSortedSet<T> Create<T> (System.Collections.Generic.IComparer<T>? comparer, params T[] items);
static member Create : System.Collections.Generic.IComparer<'T> * 'T[] -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function Create(Of T) (comparer As IComparer(Of T), ParamArray items As T()) As ImmutableSortedSet(Of T)

Parâmetros de tipo

T

O tipo de itens no conjunto imutável.

Parâmetros

comparer
IComparer<T>

A implementação a ser usada ao comparar os itens no conjunto.

items
T[]

Uma matriz que contém os itens com os quais preencher previamente o conjunto.

Retornos

Um novo conjunto imutável que contém os itens especificados.

Aplica-se a