<%@ Page Language="C#" EnableViewState="false" %> <%@ Import …
#region 邮件发送 /// <summary> /// 发送邮件支持HTML格式 先引用System.Net.Mail; /// </summary>…
1. StreamWriter - 文件写入类 StreamWriter s = new StreamWriter(address + "/Menu.ini",…
public int[] SelectionSort(int[] arr) { //1. Find min //2. Swap it with first element //3.…
获取cpu信息 using System.Collections; using System.Collections.Generic; using System.Managemen…
using System.Collections; using System.Configuration; using System.Data; using System.Linq…
C#完全实现AES算法加密解密函数 /// <summary> /// Aes加密、解密,密钥长度256,密钥长度不大于32个字节 /// </summary&g…
客户的机器的系统时间经常出错,导致给他们做的软件无法正常使用,所以后来就加了一个同步网络时间的小功能。实现起来很简单,但是却很使用。这个小功能就是先获取网络时间,然后将系统的时间修…
C# 通过Socket上传并保存图片的代码 string filename = openFile.FileName;即返回带全路径的文件名 Path.GetFileNameWith…
C#编写的一个反向代理工具,可以缓存网页到本地 proxy.ashx 主文件 <%@ WebHandler Language="C#" Clas…
using System; using System.IO; using System.Security.Cryptography; // // Sample encrypt/de…
using System; using System.IO; using iTextSharp.text; using iTextSharp.text.pdf; using iTe…