![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
启源边界
没有我做不到的,只有我想不到的。
展开
-
.NET Cache公共类
using System; using System.Collections; using System.Web; using System.Web.Caching; namespace WebApi.Shared { /// <summary> /// HttpRuntime Cache读取设置缓存信息封装 /// <auther> /// <name>Kencery</name> /// <.原创 2020-06-30 20:27:08 · 166 阅读 · 0 评论 -
MVC过滤器全局异常捕捉
1、首先引用log4net.dll 2、LogExceptionAttribute.cs文件 [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)] public class LogExceptionAttribute : HandleErrorAttribute { public override void OnException(ExceptionContext f原创 2020-06-30 20:22:34 · 270 阅读 · 0 评论 -
c#.net 获取时间年月日时分秒格式
本文转载,由于历史久远,作者看见请联系加上转载链接 //字符窜强制转换为时间 DateTime.Parse("2003-12-12") Convert.ToDateTime("2003-12-12") //获取日期+时间 DateTime.Now.ToString(); // 2008-9-4 20:02:10 DateTime.Now.ToLocalTime().ToString(); // 2008-9-4 20:12:12 //获取日期 DateTime.Now.ToLongDateStrin原创 2020-05-18 18:18:43 · 763 阅读 · 0 评论