ImmutableSortedSet.Create 方法

定義

多載

Create<T>()

建立空的不可變排序資料集。

Create<T>(IComparer<T>)

建立空的不可變排序資料集,該資料集會使用指定的比較子。

Create<T>(ReadOnlySpan<T>)

建立新的不可變排序資料集,其中包含指定的項目陣列。

Create<T>(T)

建立新的不可變排序資料集,其中包含指定的項目。

Create<T>(T[])

建立新的不可變排序資料集,其中包含指定的項目陣列。

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

建立預先填入指定專案的新不可變集合。

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

建立新的不可變排序資料集,其中包含指定的項目且使用指定的比較子。

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

建立新的不可變排序資料集,其中包含指定的項目陣列且使用指定的比較子。

Create<T>()

來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs

建立空的不可變排序資料集。

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)

類型參數

T

要儲存於不可變資料集中的項目類型。

傳回

空的不可變的已排序資料集。

適用於

Create<T>(IComparer<T>)

來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs

建立空的不可變排序資料集,該資料集會使用指定的比較子。

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)

類型參數

T

不可變資料集中的項目類型。

參數

comparer
IComparer<T>

比較資料集中的項目時所使用的實作。

傳回

空的不可變資料集。

適用於

Create<T>(ReadOnlySpan<T>)

來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs

建立新的不可變排序資料集,其中包含指定的項目陣列。

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)

類型參數

T

不可變資料集中的項目類型。

參數

items
ReadOnlySpan<T>

範圍,包含要預先填入集合的專案。

傳回

新的不可變資料集,其中包含指定的項目。

適用於

Create<T>(T)

來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs

建立新的不可變排序資料集,其中包含指定的項目。

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)

類型參數

T

不可變資料集中的項目類型。

參數

item
T

要預先填入資料集的項目。

傳回

建立新的不可變資料集,其中包含指定的項目。

適用於

Create<T>(T[])

來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs

建立新的不可變排序資料集,其中包含指定的項目陣列。

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)

類型參數

T

不可變資料集中的項目類型。

參數

items
T[]

陣列,其中包含要預先填入資料集的項目。

傳回

新的不可變資料集,其中包含指定的項目。

適用於

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

來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs

建立預先填入指定專案的新不可變集合。

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)

類型參數

T

由集合所儲存的項目類型。

參數

comparer
IComparer<T>

比較子。

items
ReadOnlySpan<T>

要預先填入的專案。

傳回

新的不可變集合。

適用於

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

來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs

建立新的不可變排序資料集,其中包含指定的項目且使用指定的比較子。

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)

類型參數

T

儲存於不可變資料集中的項目類型。

參數

comparer
IComparer<T>

比較資料集中的項目時所使用的實作。

item
T

要預先填入資料集的項目。

傳回

建立新的不可變資料集,其中包含指定的項目。

適用於

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

來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs
來源:
ImmutableSortedSet.cs

建立新的不可變排序資料集,其中包含指定的項目陣列且使用指定的比較子。

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)

類型參數

T

不可變資料集中的項目類型。

參數

comparer
IComparer<T>

比較資料集中的項目時所使用的實作。

items
T[]

陣列,其中包含要預先填入資料集的項目。

傳回

新的不可變資料集,其中包含指定的項目。

適用於