ObservableCollectionListSource<T> ObservableCollectionListSource(Of T) Class

Definition

Extends and adds an explicit implementation of .

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

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

public class ObservableCollectionListSource<T> : ObservableCollection<T>, IListSource where T : class
Public Class ObservableCollectionListSource(Of T As Class)
    Inherits ObservableCollection(Of T)
    Implements IListSource
Type Parameters
T
Inheritance
System.ObjectSystem.Object
ObservableCollectionListSource<T>ObservableCollectionListSource(Of T)

Constructors

ObservableCollectionListSource() ObservableCollectionListSource()

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

public ObservableCollectionListSource()
Public Sub New

ObservableCollectionListSource(IEnumerable) ObservableCollectionListSource(IEnumerable(Of T))

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

public ObservableCollectionListSource(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.

ObservableCollectionListSource(List) ObservableCollectionListSource(List(Of T))

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

public ObservableCollectionListSource(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.