DbExtensions.ToBindingList<T>(ObservableCollection<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
BindingList<T>
The binding list.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework