随笔分类 -  C#

摘要:Framework版本:.Net Framework 4 使用DataContractJsonSerializer时,实体请使用注解,格式如下 1、实体使用注解,并且提供get和set的public访问器 2、JSON工具源码 阅读全文
posted @ 2019-03-15 13:06 拂衣志 阅读(489) 评论(0) 推荐(0)
摘要:Framework版本:.Net Framework 4 1、FileInfo实体 2、Handler具体实现 阅读全文
posted @ 2019-03-15 12:51 拂衣志 阅读(2275) 评论(0) 推荐(0)
摘要:Framework版本:.Net Framework 4 ConnectionUtil源码参见:https://www.cnblogs.com/threadj/p/10536273.html 阅读全文
posted @ 2019-03-15 12:31 拂衣志 阅读(232) 评论(0) 推荐(0)
摘要:Framework版本:.Net Framework 4 阅读全文
posted @ 2019-03-15 12:29 拂衣志 阅读(350) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.IO; namespace ReligionServer.util { public class FileUtil { /// /// 根据给定路径删除文件... 阅读全文
posted @ 2019-03-15 11:29 拂衣志 阅读(322) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Drawing; using System.IO; using ReligionServer.constant; namespace ReligionServer.util { /// ... 阅读全文
posted @ 2019-03-15 11:29 拂衣志 阅读(835) 评论(0) 推荐(0)
摘要:反射工具类请参见:https://www.cnblogs.com/threadj/p/10535796.html 阅读全文
posted @ 2019-03-15 11:26 拂衣志 阅读(227) 评论(0) 推荐(0)
摘要:反射工具类请参见:https://www.cnblogs.com/threadj/p/10535796.html 阅读全文
posted @ 2019-03-15 11:18 拂衣志 阅读(672) 评论(0) 推荐(0)
摘要://这个是我在使用ashx处理程序的时候写的,一个ashx(一般处理程序)对应一个请求,我觉得一个请求一个文件不够优雅,所以就使用反射结合上传参数action(action:methodname)进行方法调用,以此来实现一个文件一个模块可多个请求的情况 Framework版本:.Net Framew 阅读全文
posted @ 2019-03-15 11:14 拂衣志 阅读(878) 评论(0) 推荐(0)