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.

ObservableCollectionListSource(IEnumerable<T>) ObservableCollectionListSource(IEnumerable(Of T))

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

ObservableCollectionListSource(List<T>) ObservableCollectionListSource(List(Of T))

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