ObservableHashSetListSource<T> ObservableHashSetListSource(Of T) Class

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.

Syntax

Declaration

public class ObservableHashSetListSource<T> : ObservableHashSet<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, INotifyPropertyChanging, IListSource where T : classPublic 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 Hierarchy

Inherited Members

PropertyChanged,
PropertyChanged,
PropertyChanging,
PropertyChanging,
CollectionChanged,
CollectionChanged,
ICollection<T>.Add(T),
System.Collections.Generic.ICollection<T>.Add(T),
Clear(),
Clear(),
Contains(T),
Contains(T),
CopyTo(T[], Int32),
CopyTo(T(), Int32),
Remove(T),
Remove(T),
Count,
Count,
IsReadOnly,
IsReadOnly,
GetEnumerator(),
GetEnumerator(),
IEnumerable<T>.GetEnumerator(),
System.Collections.Generic.IEnumerable<T>.GetEnumerator(),
IEnumerable.GetEnumerator(),
System.Collections.IEnumerable.GetEnumerator(),
Add(T),
Add(T),
UnionWith(IEnumerable<T>),
UnionWith(IEnumerable(Of T)),
IntersectWith(IEnumerable<T>),
IntersectWith(IEnumerable(Of T)),
ExceptWith(IEnumerable<T>),
ExceptWith(IEnumerable(Of T)),
SymmetricExceptWith(IEnumerable<T>),
SymmetricExceptWith(IEnumerable(Of T)),
IsSubsetOf(IEnumerable<T>),
IsSubsetOf(IEnumerable(Of T)),
IsProperSubsetOf(IEnumerable<T>),
IsProperSubsetOf(IEnumerable(Of T)),
IsSupersetOf(IEnumerable<T>),
IsSupersetOf(IEnumerable(Of T)),
IsProperSupersetOf(IEnumerable<T>),
IsProperSupersetOf(IEnumerable(Of T)),
Overlaps(IEnumerable<T>),
Overlaps(IEnumerable(Of T)),
SetEquals(IEnumerable<T>),
SetEquals(IEnumerable(Of T)),
CopyTo(T[]),
CopyTo(T()),
CopyTo(T[], Int32, Int32),
CopyTo(T(), Int32, Int32),
RemoveWhere(Predicate<T>),
RemoveWhere(Predicate(Of T)),
Comparer,
Comparer,
TrimExcess(),
TrimExcess(),
OnPropertyChanged(PropertyChangedEventArgs),
OnPropertyChanged(PropertyChangedEventArgs),
OnPropertyChanging(PropertyChangingEventArgs),
OnPropertyChanging(PropertyChangingEventArgs),
OnCollectionChanged(NotifyCollectionChangedEventArgs),
OnCollectionChanged(NotifyCollectionChangedEventArgs),
ToBindingList()
ToBindingList()

Constructors summary

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

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

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

Constructors

  • ObservableHashSetListSource()
    ObservableHashSetListSource()

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

    public ObservableHashSetListSource()Public Sub New
  • ObservableHashSetListSource(IEnumerable<T>)
    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><T>
      System.Collections.Generic.IEnumerable<T>(Of T)

      The collection from which the elements are copied.

  • ObservableHashSetListSource(List<T>)
    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><T>
      System.Collections.Generic.List<T>(Of T)

      The list from which the elements are copied.

Details

Assembly

Microsoft.EntityFrameworkCore.dll