随笔分类 - .Net Framework
摘要:https://github.com/ArxOne/MrAdvice 太简单了,写好自己的处理类, 作为Attribute加到要拦截的方法或者类上就可以了。 Here is the minimal sample: public class MyProudAdvice : Attribute, IMe
阅读全文
摘要:提取结果: af yyyy-MM-dd HH:mmaf-ZA yyyy-MM-dd HH:mmar dd/MM/yy hh:mm ttar-AE dd/MM/yyyy hh:mm ttar-BH dd/MM/yyyy hh:mm ttar-DZ dd-MM-yyyy H:mmar-EG dd/MM/
阅读全文
摘要:1 private string GetMD5(string sDataIn) 2 { 3 MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider(); 4 byte[] bytValue, bytHash; 5 byt...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Drawing; 4 using System.IO; 5 using System.Linq; 6 using System.Web; 7 using System.Drawing.Imaging; 8 // 博客园 aC#Coder 整理 ...
阅读全文
摘要:.net framework4.5中新增加的async await关键字,即异步方法功能,使异步操作的编写特别方便、高效和容易理解。下面给出一个简洁示例: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 using System.Threading.Tasks; 7 8 namespace AsyncTest 9 {10 class Program11 {12 sta...
阅读全文