Last active
January 8, 2020 06:31
-
-
Save yilmazdincsoy/fb9fb9ca3b60e60c10491cc030c2518d to your computer and use it in GitHub Desktop.
ToObservableCollection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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