2013年12月7日

Lambda

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace LinqDemo{ public class ProcessData { public int id { get; set; } public string Name { get; set; } public Int64 Memory { get; set; } }}using System;using System.Collections.Generic;using System.Linq;using Syst 阅读全文

posted @ 2013-12-07 17:42 谭一丹 阅读(362) 评论(0) 推荐(0)

dotNet中初始化器的使用

摘要: dotNet中初始化器的使用2013年12月7日13:27有两类初始化器:对象初始化器和集合初始化器比如现在有一个User类:Public class User{ public int id{get;set;} public string Name{get;set;} public int Age{get;set;}}对象初始化器:Var user=new User{id=1,Name="danche",Age=23}"传统"的方法:User user=new User();user.id=1;user.Name="danche";u 阅读全文

posted @ 2013-12-07 15:12 谭一丹 阅读(188) 评论(0) 推荐(0)

导航