摘要:public static class TConverter{ public static T ChangeType<T>(object value) { return (T)ChangeType(typeof(T), value); } public static object ChangeType(Type t, object value) { TypeConverter tc =... 阅读全文
posted @ 2010-10-19 18:05 MicroCoder 阅读(206) 评论(0) 推荐(0) 编辑
摘要:public static bool IsCached(HttpContext context, TimeSpan cacheDuration) { var modifiedSince = context.Request.Headers["If-Modified-Since"]; if (!string.IsNullOrEmpty(modifiedSince)) { modifiedSince =... 阅读全文
posted @ 2010-10-19 15:49 MicroCoder 阅读(216) 评论(0) 推荐(0) 编辑