随笔分类 -  .NET工具类

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