C#
人生苦短_及时行乐
这个作者很懒,什么都没留下…
展开
-
C#文件上传
文件上传原创 2023-02-10 17:31:41 · 906 阅读 · 0 评论 -
XML文件工具类
XML读写原创 2023-02-10 17:19:57 · 226 阅读 · 0 评论 -
c# log4net 使用
新建Logger类,代码如下 public static class Logger { /// <summary> /// 通用错误日志记录器 /// </summary> private static ILog log; private static object lockObj = new object(); public static ...原创 2022-04-01 16:02:12 · 434 阅读 · 0 评论 -
Ini文件配置读取
1.Ini构造类public class Ini{ Dictionary<string, Dictionary<string, string>> ini = new Dictionary<string, Dictionary<string, string>>(StringComparer.InvariantCultureIgnoreCase); string file; /// <summary> //...原创 2021-05-12 16:32:15 · 465 阅读 · 0 评论 -
c# 从服务器复制图片压缩,导出到浏览器
最近做了一个这样的需求,花了点时间,所以记录下来,有需要的朋友可以直接用/// <summary> /// 导出图片 /// </summary> /// <returns></returns> [HttpGet] public ActionResult ExportImg(string departmentId, string keyword) {...原创 2021-01-19 11:02:30 · 291 阅读 · 0 评论