日期:2014-05-18 浏览次数:20809 次
void Main() { string[] str1 = new string[] { "负", "零", "正" }; var result= from x in str1 from y in str1 from z in str1 select new {x,y,z}; Console.WriteLine(result); }
------解决方案--------------------
var result = ( from x in str1 from y in str1 from z in str1 select new { Value = x + y + z } ).ToList(); datagridview.DataSource = result;