using System.Collections.ObjectModel;
public static class Extensions
{
public static ObservableCollection AsObservableCollection(this System.Collections.Generic.IEnumerable col)
{
var newcol = new ObservableCollection();
foreach (var item in col)
{
newcol.Add(item);
}
return newcol;
}
}