摘要: //取当前整个星期时间范围DateTime startDate = DateTime.Today.Date.AddDays(-(int)DateTime.Today.DayOfWeek), // prev sunday 00:00endDate = startDate.AddDays(7); // next sunday 00:00//取当前整个月时间范围int CurrentYear = Dat... 阅读全文
posted @ 2013-04-20 17:58 黎东海 阅读(745) 评论(0) 推荐(0) 编辑
摘要: using System;using System.ComponentModel;using System.Linq;[Category("nice")]class Foo { }static class Program{ static void Main() { var ca = TypeDescriptor.GetAttributes(typeof(Foo)) ... 阅读全文
posted @ 2013-04-20 11:40 黎东海 阅读(2226) 评论(1) 推荐(1) 编辑