摘要:
//取当前整个星期时间范围DateTime startDate = DateTime.Today.Date.AddDays(-(int)DateTime.Today.DayOfWeek), // prev sunday 00:00endDate = startDate.AddDays(7); // next sunday 00:00//取当前整个月时间范围int CurrentYear = Dat... 阅读全文
摘要:
using System;using System.ComponentModel;using System.Linq;[Category("nice")]class Foo { }static class Program{ static void Main() { var ca = TypeDescriptor.GetAttributes(typeof(Foo)) ... 阅读全文