ObservableCollectionListSource<T> ObservableCollectionListSource(Of T) Class

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.

Syntax

Declaration

public class ObservableCollectionListSource<T> : ObservableCollection<T>, IListSource where T : classPublic Class ObservableCollectionListSource(Of T As Class)
    Inherits ObservableCollection(Of T)
    Implements IListSource

Type Parameters

T

Inheritance Hierarchy

  • System.Object
    System.Object
  • ObservableCollectionListSource<T>
    ObservableCollectionListSource(Of T)

Constructors summary

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

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

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

Constructors

  • ObservableCollectionListSource()
    ObservableCollectionListSource()

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

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

      The collection from which the elements are copied.

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

      The list from which the elements are copied.

Details

Assembly

Microsoft.EntityFrameworkCore.dll