代码改变世界

c# 获取机器硬件信息 (硬盘,cpu,内存等)

2016-09-14 09:46 by newbirth, 9988 阅读, 0 推荐, 收藏,
摘要:using System; using System.Collections.Generic; using System.Globalization; using System.Management; using System.IO; using System.Net; using System.Net.NetworkInformation; using System.Net.Sockets; ... 阅读全文

c# 实体处理工具类

2016-09-14 09:46 by newbirth, 807 阅读, 0 推荐, 收藏,
摘要:using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.T... 阅读全文

c# 文件日志处理 需要log4net配置

2016-09-14 09:44 by newbirth, 743 阅读, 0 推荐, 收藏,
摘要:using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace HuaTong.General.Utility { /// /// 文件日志处理 需要log4net配置 /// p... 阅读全文

c# 处理js序列化时 datetime返回UTC格式的问题

2016-09-14 09:43 by newbirth, 484 阅读, 0 推荐, 收藏,
摘要:using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Converters; using System.Collections; n... 阅读全文

c# JScriptProvider包装

2016-09-14 09:41 by newbirth, 485 阅读, 0 推荐, 收藏,
摘要:using System; using System.CodeDom.Compiler; using System.Reflection; using System.Web.UI; using Microsoft.JScript; namespace HuaTong.General.Utility { /// /// JScriptProvider包装 /// ... 阅读全文

c# 模拟POST上传文件到服务器

2016-09-14 09:40 by newbirth, 10475 阅读, 0 推荐, 收藏,
摘要:using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Net; namespace HuaTong.General.Utility { /// //... 阅读全文

c# http操作类

2016-09-14 09:39 by newbirth, 3131 阅读, 0 推荐, 收藏,
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Net; using System.IO... 阅读全文

c# html内容处理类

2016-09-14 09:37 by newbirth, 3145 阅读, 0 推荐, 收藏,
摘要:using System; using System.Text; using System.Text.RegularExpressions; using System.Net; using System.IO; using System.IO.Compression; namespace HuaTong.General.Utility { /// /// html内容处理 ... 阅读全文

c# 加密工具类

2016-09-14 09:35 by newbirth, 966 阅读, 0 推荐, 收藏,
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Web.Secur... 阅读全文

c# 发送邮件

2016-09-14 09:34 by newbirth, 183 阅读, 0 推荐, 收藏,
摘要:using System; using System.Web; namespace HuaTong.General.Utility { /// /// 邮件发送 /// public class EmailHelper { string MailAddress = ""; string MailName = ""; ... 阅读全文