ObservableCollectionExtensions.ToBindingList<T> Method (ObservableCollection<T>)

 

Returns an BindingList<T> implementation that stays in sync with the given ObservableCollection<T>.

Namespace:   System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

public static BindingList<T> ToBindingList<T>(
	this ObservableCollection<T> source
)
where T : class

Parameters

source
Type: System.Collections.ObjectModel.ObservableCollection<T>

The collection that the binding list will stay in sync with.

Return Value

Type: System.ComponentModel.BindingList<T>

The binding list.

Type Parameters

T

The element type.