赞
踩
ObservableCollection<object> 转 List<T>
List<object> list = dgReport.SelectedItems.ToList();
Object ob = (Object)list;
List<T> composes = (List<T>)ob;
ObservableCollection<object> 互转 List<object>
T tList = new List(tObjectStruct .ToList());
ObservableCollection tObjectStruct = new ObservableCollection(tList);
或
tList.ForEach(p => tObjectStruct.Add(t));
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。