08 2013 档案

摘要:运用Linq,将List 转换为 Dictionary即:List ToDictionary废话不说,看代码:示例代码:按照性别分类class Program { public class Student { public string Name { get; set; } public int Age { get; set; } public int Sex { get; set; } } static void Main(string[] args... 阅读全文
posted @ 2013-08-29 10:29 cnkker.com 阅读(1063) 评论(0) 推荐(0)
摘要:static DateTime pay_end(DateTime cur_date){DateTime start_date = DateTime.Parse("1999-05-03"); int time_diff = (cur_date - start_date).Days; int pay_periods = (int)(time_diff / 14.0D); if (Math.Ceiling(time_diff / 14.0D) == 0)return start_date.AddDays(pay_periods * 14); return start_date.A 阅读全文
posted @ 2013-08-07 16:08 cnkker.com 阅读(216) 评论(0) 推荐(0)