摘要:
隐式数组的查询应用:var a=new[]{1,3,4,5};查询大于等于4的数组成员:var b=from i in a where i<=4 select i; 匿名类型:var person = new { name = "dynasty", age = "22", address = "丽水" }; Response.Write(person.name); Response.Wri... 阅读全文
posted @ 2009-09-20 20:31
wc
阅读(200)
评论(0)
推荐(0)
摘要:
(1)int类型数组的语法:var array=new[]{1,2};(2)string类型数组语法:var str=new[]{"dyansty",“haxido”};(3)不规则数组:传统二维int[][] a=new int[][]{new[]{1,2,3},new[]{4,5,6}}; 隐式类型var a =new[]{new[]{1,2,3},new[]{4,5,... 阅读全文
posted @ 2009-09-20 15:14
wc
阅读(239)
评论(0)
推荐(0)

浙公网安备 33010602011771号