ObservableHashSetListSource<T> ObservableHashSetListSource(Of T) Class

Definition

Extends ObservableHashSet<T> and adds an explicit implementation of .

The method is implemented to return an implementation that stays in sync with the ObservableHashSet.

This class can be used to implement navigation properties on entities for use in Windows Forms data binding. For WPF data binding use an ObservableHashSet rather than an instance of this class.

public class ObservableHashSetListSource<T> : ObservableHashSet<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, INotifyPropertyChanging, IListSource where T : class
Public Class ObservableHashSetListSource(Of T As Class)
    Inherits ObservableHashSet(Of T)
    Implements IReadOnlyCollection(Of T), IEnumerable(Of T), IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, INotifyPropertyChanging, IListSource
Type Parameters
T
Inheritance
System.ObjectSystem.Object
ObservableHashSetListSource<T>ObservableHashSetListSource(Of T)
Implements
System.Collections.Generic.IReadOnlyCollection<T>System.Collections.Generic.IReadOnlyCollection(Of T) System.Collections.Generic.IEnumerable<T>System.Collections.Generic.IEnumerable(Of T) System.Collections.IEnumerableSystem.Collections.IEnumerable

Constructors

ObservableHashSetListSource() ObservableHashSetListSource()

Initializes a new instance of the ObservableHashSetListSource<T> class.

public ObservableHashSetListSource()
Public Sub New

ObservableHashSetListSource(IEnumerable) ObservableHashSetListSource(IEnumerable(Of T))

Initializes a new instance of the ObservableHashSetListSource<T> class that contains elements copied from the specified collection.

public ObservableHashSetListSource(IEnumerable<T> collection)
Public Sub New(collection As IEnumerable(Of T))
Parameters
collection
System.Collections.Generic.IEnumerable<T> System.Collections.Generic.IEnumerable(Of T)

The collection from which the elements are copied.

ObservableHashSetListSource(List) ObservableHashSetListSource(List(Of T))

Initializes a new instance of the ObservableHashSetListSource<T> class that contains elements copied from the specified list.

public ObservableHashSetListSource(List<T> list)
Public Sub New(list As List(Of T))
Parameters
list
System.Collections.Generic.List<T> System.Collections.Generic.List(Of T)

The list from which the elements are copied.

Methods

Add(T) Add(T)

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

Clear() Clear()

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

CollectionChanged CollectionChanged

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

Comparer Comparer

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

Contains(T) Contains(T)

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

CopyTo(T[]) CopyTo(T())

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

CopyTo(T[], Int32) CopyTo(T(), Int32)

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

CopyTo(T[], Int32, Int32) CopyTo(T(), Int32, Int32)

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

Count Count

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

ExceptWith(IEnumerable) ExceptWith(IEnumerable(Of T))

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

GetEnumerator() GetEnumerator()

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

ICollection.Add(T) System.Collections.Generic.ICollection.Add(T)

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

IEnumerable.GetEnumerator() System.Collections.IEnumerable.GetEnumerator()

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

IEnumerable.GetEnumerator() System.Collections.Generic.IEnumerable.GetEnumerator()

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

IntersectWith(IEnumerable) IntersectWith(IEnumerable(Of T))

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

IsProperSubsetOf(IEnumerable) IsProperSubsetOf(IEnumerable(Of T))

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

IsProperSupersetOf(IEnumerable) IsProperSupersetOf(IEnumerable(Of T))

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

IsReadOnly IsReadOnly

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

IsSubsetOf(IEnumerable) IsSubsetOf(IEnumerable(Of T))

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

IsSupersetOf(IEnumerable) IsSupersetOf(IEnumerable(Of T))

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

OnCollectionChanged(NotifyCollectionChangedEventArgs) OnCollectionChanged(NotifyCollectionChangedEventArgs)

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

OnPropertyChanged(PropertyChangedEventArgs) OnPropertyChanged(PropertyChangedEventArgs)

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

OnPropertyChanging(PropertyChangingEventArgs) OnPropertyChanging(PropertyChangingEventArgs)

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

Overlaps(IEnumerable) Overlaps(IEnumerable(Of T))

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

PropertyChanged PropertyChanged

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

PropertyChanging PropertyChanging

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

Remove(T) Remove(T)

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

RemoveWhere(Predicate) RemoveWhere(Predicate(Of T))

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

SetEquals(IEnumerable) SetEquals(IEnumerable(Of T))

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

SymmetricExceptWith(IEnumerable) SymmetricExceptWith(IEnumerable(Of T))

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

ToBindingList() ToBindingList()

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

TrimExcess() TrimExcess()

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>

UnionWith(IEnumerable) UnionWith(IEnumerable(Of T))

Inherited from Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>