随笔分类 - .NET工具类
摘要:将list集合转化为sql in 的范围对象 比如 List<string> idList= new List<string>(); idList.Add(“001”); idList.Add(“002”); idList.Add(“003”); select * from table where
阅读全文
摘要:/// <summary> /// /// </summary> public static class StringExtentions { /// <summary> /// 转换为MD5加密后的字符串(默认加密为32位) /// </summary> /// <param name="str"
阅读全文
摘要:/// <summary> /// /// </summary> public static class IEnumerableExtentions { /// <summary> /// 复制序列中的数据 /// </summary> /// <typeparam name="T">泛型</typ
阅读全文
摘要:/// <summary> /// 文件压缩类 /// </summary> public class ZipHelper { /// <summary> /// 单文件压缩成ZIP /// </summary> /// <param name="fileSource">源文件路径</param>
阅读全文
摘要:using System.ComponentModel; namespace ABenNetCore.FriendException.Helper { public class EnumItem { public string Code { get; set; } public int Value
阅读全文
摘要:using StackExchange.Redis; using System; using System.Collections.Generic; using System.Text; using Newtonsoft.Json; namespace ABenNetCore.Redis.Xunit
阅读全文
摘要:using Microsoft.Extensions.DependencyModel; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.R
阅读全文
摘要:本文实例讲述了C#实现Xml序列化与反序列化的方法。分享给大家供大家参考。具体实现方法如下: /// <summary>/// Xml序列化与反序列化/// </summary>public class XmlUtil{public static string GetRoot(string xml)
阅读全文
摘要:FileShare.ReadWrite | FileShare.Delete 表示其他打开此文件的进程可以读写和删除该文件.当文件被此函数打开后, 即使文件被删除, 移走, 重命名后, 仍然可以读取里面的内容.(应当是操作系统并没有真正删除, 对象关闭后了才真正删除) using (var stre
阅读全文
摘要:参考:http://www.cnblogs.com/zxx193/p/3605238.html?utm_source=tuicoolhttp://www.cnblogs.com/freeliver54/p/3430956.htmlhttp://www.cnblogs.com/simhare/arch...
阅读全文
摘要:C#HttpHelper官方产品发布与源码下载---苏飞版http://www.sufeinet.com/thread-3-1-1.html在C#用HttpWebRequest中发送GET/HTTP/HTTPS请求http://zhoufoxcn.blog.51cto.com/792419/5619...
阅读全文
摘要:来源:http://git.oschina.net/kuiyu/dotnetcodes/tree/master/DotNet.Utilities
阅读全文
摘要:FSLib.Extension库是一个用于.NET的扩展函数库,所提供的函数和方法均使用扩展方法引入,包含数以百计的用于日常编写程序时使用的扩展方法。 http://www.fishlee.net/soft/fishextension.net/ git来源:http://git.fishlee.ne
阅读全文
摘要:转载:http://blog.csdn.net/gdjlc/article/details/11968477using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.N...
阅读全文
摘要:最近要做一个项目涉及到C#中压缩与解压缩的问题的解决方法,大家分享。这里主要解决文件夹包含文件夹的解压缩问题。)下载SharpZipLib.dll,在http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx中有最新免费版本,“As...
阅读全文
摘要:在线网站:http://tool.sufeinet.com/CodePreview/CodeView.aspx?action=view&file=Zip/SharpZip.csC#基类库大全苏飞版:http://www.sufeinet.com/thread-655-1-1.html[源码分享]收集...
阅读全文
摘要:转载:http://www.cnblogs.com/lori/p/3529936.html代码: static void GetFiles(List arr, string dir) { arr.AddRange(Directory.GetFiles(dir));...
阅读全文
摘要:转载:http://www.cnblogs.com/sufei/archive/2010/01/14/1648028.htmlusing System.Text.RegularExpressions;/// /// 开发人:苏飞/// 开发时间:2009-09-11/// 主要功能:判断页面各个控件...
阅读全文
摘要:FSLibExtension.NEThttps://github.com/iccfish/FSLib.ExtensionWebEssentials2013https://github.com/iccfish/WebEssentials2013
阅读全文

浙公网安备 33010602011771号