一、封装的类 using System; using System.Collections.Generic; using System.Linq; using System.Tex…
c#下实现ping操作代码 这里我写的是一个窗体程序。首先添加textbox,listbox,button控件,其中textbox录入域名或IP,listbox显示结果. pri…
C# 两个目录同步的代码 using System; using System.Collections.Generic; using System.IO; using System…
using System; using System.Collections.Generic; using System.ComponentModel; using System.…
[HttpPost] public string xdg() { &…
vs2010中运行,必须引用Mysql.data /连接数据库/ using System; using System.Collections.Generic; using Sys…
List<FileInfo> list = new List<FileInfo>(); public void FindFile(string path, …
using System; using System.Collections.Generic; using System.Linq; using System.Text; usin…
此代码可以随机生成指定长度的数字+字符的密码,可以自定义长度 /// <summary> /// 生成随机数的种子 /// </summary> /// &…
#region 验证邮箱验证邮箱 /**//// <summary> /// 验证邮箱 /// </summary> /// <param name=…
C# 操作系统服务(service)代码 可以控制启动和停止系统服务 private bool StopService(string StopServiceName) { Serv…
C#实现的字符串加密和解密方法 public class Encrypt { //默认密钥向量 private static byte[] Keys = { 0x12, 0x34,…
C# Winform利用POST传值方式模拟表单提交数据(Winform与网页交互)