码迷,mamicode.com
首页 > 其他好文 > 详细

数组/LINQ/List/ObservableCollection

时间:2014-07-03 07:07:52      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:des   blog   cti   io   new   window   

        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

标签:des   blog   cti   io   new   window   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!