Blog sul mondo C# e non solo [ITA]
public static ObservableCollection<T> Clone<T> (this ObservableCollection<T> source) { if (source != null) { var res = new ObservableCollection<T>(); foreach (var item in source) { res.Add(Clone<T>(item)); } return res; } return null; }
Nessun commento:
Posta un commento