src/Shared/EntityFramework/ObservableCollectionExtensions.cs
/// <summary>
/// Returns an <see cref="BindingList{T}" /> implementation that stays in sync with the given
/// <see cref="ObservableCollection{T}" />.
/// </summary>
/// <typeparam name="T"> The element type. </typeparam>
/// <param name="source"> The collection that the binding list will stay in sync with. </param>
/// <returns> The binding list. </returns>
Returns an  implementation that stays in sync with the given
.
Returns an implementation that stays in sync with the given .
public static BindingList<T> ToBindingList<T>(this ObservableCollection<T> source) where T : class
        {
            Check.NotNull(source, "source");
            var asLocalView = source as DbLocalView<T>;
            return asLocalView != null ? asLocalView.BindingList : new ObservableBackedBindingList<T>(source);
        }
public static BindingList < T > ToBindingList < T > ( this ObservableCollection < T > source ) where T : class { Check . NotNull ( source , " " ) ; var asLocalView = source as DbLocalView < T > ; return asLocalView != null ? asLocalView . BindingList : new ObservableBackedBindingList < T > ( source ) ; }
Returns an  implementation that stays in sync with the given
.
Returns an implementation that stays in sync with the given .
The binding list.
The binding list .
ObservableCollection<T>
this
source
The collection that the binding list will stay in sync with.
The collection that the binding list will stay in sync with .
typeparam
The element type.
The element type .