首页 > 编程语言 > 详细

C# 数组 之间转换

时间:2016-12-23 18:34:25      阅读:182      评论:0      收藏:0      [点我收藏+]

  List<string> strLen = new List<string>();
            if (!string.IsNullOrEmpty(group_id))
            {
                using (ManagementSystemContext ef = new ManagementSystemContext())
                {
                    List<GroupMapUserMapRoler> list = ef.GroupMapUserMapRolers.Where(a => a.group_id == group_id).ToList();
                    list.ForEach(p =>
                    {
                        var mm = ef.tBaseRolerMapPowers.Where(a => a.roler_name.Equals(p.roler_name)).Select(a => a.power_name);
                        foreach (var item in mm)
                        {
                            strLen.Add(item.ToString());
                        }
                    });
                    if (strLen.Count > 0)
                        strLen.Distinct();
                }
            }
            return string.Join(",", strLen);

C# 数组 之间转换

原文:http://www.cnblogs.com/ln-qiqi/p/6215626.html

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