Share via


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

Definition

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

public static System.ComponentModel.BindingList<T> ToBindingList<T> (this System.Collections.ObjectModel.ObservableCollection<T> source) where T : class;
static member ToBindingList : System.Collections.ObjectModel.ObservableCollection<'T (requires 'T : null)> -> System.ComponentModel.BindingList<'T (requires 'T : null)> (requires 'T : null)
<Extension()>
Public Function ToBindingList(Of T As Class) (source As ObservableCollection(Of T)) As BindingList(Of T)

Type Parameters

T

The element type.

Parameters

source
ObservableCollection<T>

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

Returns

The binding list.

Applies to