随笔分类 - c#
摘要:public static class XSSHelper { /// <summary> /// XSS过滤 /// </summary> /// <param name="html">html代码</param> /// <returns>过滤结果</returns> public static
阅读全文
摘要:IEnumerable<string> result = null;List<string> a = new List<string> ();List<string> b = new List<string>() { "a","b","c","d"};List<string> c = new Lis
阅读全文
摘要:/// <summary> /// 批量添加 /// </summary> /// <param name="modelList"></param> public void BtachAdd(IEnumerable<SMSSendReport> modelList) { var dt = model
阅读全文
摘要:方法1 var range = 100; int times = dataList.Count/range + (dataList.Count % range > 0 ? 1 :0 ); //dataList为要操作的数据,times为需要分批次数 for(int i = 0; i < times;
阅读全文
摘要:// <summary> /// 发送http post请求 /// </summary> /// <param name="url">地址</param> /// <param name="parameters">查询参数集合</param> /// <returns></returns> public string CreatePostHttpResponse(string url, IDic
阅读全文
摘要:C# 委托(Delegate) C# 中的委托(Delegate)类似于 C 或 C++ 中函数的指针。委托(Delegate) 是存有对某个方法的引用的一种引用类型变量。引用可在运行时被改变。 委托(Delegate)特别用于实现事件和回调方法。所有的委托(Delegate)都派生自 System.Delegate 类。 声明委托(Delegate) 委托声明决定了可由该委托引用的方法。委...
阅读全文

浙公网安备 33010602011771号