List和ObservableCollection的相互转化

T tList = new List(tObjectStruct .ToList()); ObservableCollection tObjectStruct = new ObservableCollection(tList); 都在构造函数中即可完成 也可以: tList.ForEach(p => tObjectStruct.Add(t)); 原文:http://www.cnblogs.com/warioland/archive/2011/11/08/2240858.html

转载于:https://www.cnblogs.com/pingping/archive/2012/07/02/2573106.html

你可能感兴趣的:(List和ObservableCollection的相互转化)