linq 笛卡尔积

List<string> list_1 = new List<string>();
            Enumerable.Range(1, 10).ToList().ForEach(i=>list_1.Add(i.ToString()));

            var query = from s in list_1
                        from a in list_1
                        select s + " " + a;
            var res = query.ToList();

posted on 2012-03-31 15:08  雨渐渐  阅读(431)  评论(0编辑  收藏  举报

导航