ObservableHashSet<T> Constructors

Definition

Overloads

ObservableHashSet<T>()

Initializes a new instance of the ObservableHashSet<T> class that is empty and uses the default equality comparer for the set type.

ObservableHashSet<T>(IEnumerable<T>)

Initializes a new instance of the ObservableHashSet<T> class that uses the default equality comparer for the set type, contains elements copied from the specified collection, and has sufficient capacity to accommodate the number of elements copied.

ObservableHashSet<T>(IEqualityComparer<T>)

Initializes a new instance of the ObservableHashSet<T> class that is empty and uses the specified equality comparer for the set type.

ObservableHashSet<T>(IEnumerable<T>, IEqualityComparer<T>)

Initializes a new instance of the ObservableHashSet<T> class that uses the specified equality comparer for the set type, contains elements copied from the specified collection, and has sufficient capacity to accommodate the number of elements copied.

ObservableHashSet<T>()

Initializes a new instance of the ObservableHashSet<T> class that is empty and uses the default equality comparer for the set type.

public ObservableHashSet ();
Public Sub New ()

Applies to

ObservableHashSet<T>(IEnumerable<T>)

Initializes a new instance of the ObservableHashSet<T> class that uses the default equality comparer for the set type, contains elements copied from the specified collection, and has sufficient capacity to accommodate the number of elements copied.

public ObservableHashSet (System.Collections.Generic.IEnumerable<T> collection);
new Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<'T> : seq<'T> -> Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<'T>
Public Sub New (collection As IEnumerable(Of T))

Parameters

collection
IEnumerable<T>

The collection whose elements are copied to the new set.

Applies to

ObservableHashSet<T>(IEqualityComparer<T>)

Initializes a new instance of the ObservableHashSet<T> class that is empty and uses the specified equality comparer for the set type.

public ObservableHashSet (System.Collections.Generic.IEqualityComparer<T> comparer);
new Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<'T> : System.Collections.Generic.IEqualityComparer<'T> -> Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<'T>
Public Sub New (comparer As IEqualityComparer(Of T))

Parameters

comparer
IEqualityComparer<T>

The IEqualityComparer<T> implementation to use when comparing values in the set, or null to use the default IEqualityComparer<T> implementation for the set type.

Applies to

ObservableHashSet<T>(IEnumerable<T>, IEqualityComparer<T>)

Initializes a new instance of the ObservableHashSet<T> class that uses the specified equality comparer for the set type, contains elements copied from the specified collection, and has sufficient capacity to accommodate the number of elements copied.

public ObservableHashSet (System.Collections.Generic.IEnumerable<T> collection, System.Collections.Generic.IEqualityComparer<T> comparer);
new Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<'T> : seq<'T> * System.Collections.Generic.IEqualityComparer<'T> -> Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<'T>
Public Sub New (collection As IEnumerable(Of T), comparer As IEqualityComparer(Of T))

Parameters

collection
IEnumerable<T>

The collection whose elements are copied to the new set.

comparer
IEqualityComparer<T>

The IEqualityComparer<T> implementation to use when comparing values in the set, or null to use the default IEqualityComparer<T> implementation for the set type.

Applies to