首页 > 其他 > 详细

数组/LINQ/List/ObservableCollection

时间:2014-07-03 07:07:35      阅读:458      评论:0      收藏:0      [点我收藏+]
        private static void AddIndustryTypes(sectorCode[] result)
        {
            var industryTypes = (from t in result
                                 select new Industry
                                     {
                                         Key = t.sector_key,
                                         Mnem = t.sector_mnem,
                                         Desc = t.sector_desc,
                                     }).OrderBy(o => o.Mnem).ToList();
            IndustryTypes = new ObservableCollection<Industry>(industryTypes);
            System.Windows.Application.Current.Resources[IndustryTypeKey] = IndustryTypes;
        }

  

数组/LINQ/List/ObservableCollection,布布扣,bubuko.com

数组/LINQ/List/ObservableCollection

原文:http://www.cnblogs.com/jackslateryu/p/3818442.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!