ImmutableSortedSet.Create Method

Definition

Overloads

Name Description
Create<T>()

Creates an empty immutable sorted set.

Create<T>(IComparer<T>)

Creates an empty immutable sorted set that uses the specified comparer.

Create<T>(T)

Creates a new immutable sorted set that contains the specified item.

Create<T>(T[])

Creates a new immutable sorted set that contains the specified array of items.

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

Creates a new immutable sorted set that contains the specified item and uses the specified comparer.

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

Creates a new immutable sorted set that contains the specified array of items and uses the specified comparer.

Create<T>()

Creates an empty immutable sorted set.

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)

Type Parameters

T

The type of items to be stored in the immutable set.

Returns

An empty immutable sorted set.

Applies to

Create<T>(IComparer<T>)

Creates an empty immutable sorted set that uses the specified comparer.

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

Type Parameters

T

The type of items in the immutable set.

Parameters

comparer
IComparer<T>

The implementation to use when comparing items in the set.

Returns

An empty immutable set.

Applies to

Create<T>(T)

Creates a new immutable sorted set that contains the specified item.

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)

Type Parameters

T

The type of items in the immutable set.

Parameters

item
T

The item to prepopulate the set with.

Returns

A new immutable set that contains the specified item.

Applies to

Create<T>(T[])

Creates a new immutable sorted set that contains the specified array of items.

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)

Type Parameters

T

The type of items in the immutable set.

Parameters

items
T[]

An array that contains the items to prepopulate the set with.

Returns

A new immutable set that contains the specified items.

Applies to

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

Creates a new immutable sorted set that contains the specified item and uses the specified comparer.

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

Type Parameters

T

The type of items stored in the immutable set.

Parameters

comparer
IComparer<T>

The implementation to use when comparing items in the set.

item
T

The item to prepopulate the set with.

Returns

A new immutable set that contains the specified item.

Applies to

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

Creates a new immutable sorted set that contains the specified array of items and uses the specified comparer.

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

Type Parameters

T

The type of items in the immutable set.

Parameters

comparer
IComparer<T>

The implementation to use when comparing items in the set.

items
T[]

An array that contains the items to prepopulate the set with.

Returns

A new immutable set that contains the specified items.

Applies to