Skip to content

Instantly share code, notes, and snippets.

@yilmazdincsoy
Last active January 8, 2020 06:31
Show Gist options
  • Save yilmazdincsoy/fb9fb9ca3b60e60c10491cc030c2518d to your computer and use it in GitHub Desktop.
Save yilmazdincsoy/fb9fb9ca3b60e60c10491cc030c2518d to your computer and use it in GitHub Desktop.
ToObservableCollection
public static ObservableCollection<T> ToObservableCollection<T>(this IEnumerable<T> list){
var collection= new ObservableCollection();
foreach(vat item in list)
{
collection.Add(item);
}
//
return collection;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment