c# 288

#C#
C#通过shell32获取文件属性

using System; using System.Collections.Generic; using System.Linq; using System.Text; usin…

c#
2015-05-02 288

#C#
C# 生成随机密码(随机字符串)

此代码可以随机生成指定长度的数字+字符的密码,可以自定义长度 /// <summary> /// 生成随机数的种子 /// </summary> /// &…

c#
2015-05-02 548

#C#
C#验证邮箱,电话,手机,数字,英文,日期,身份证,邮编,网址,IP类等常用函数封装

#region 验证邮箱验证邮箱 /**//// <summary> /// 验证邮箱 /// </summary> /// <param name=…

c#
2015-05-02 684

#C#
C# 操作系统服务(service)代码

C# 操作系统服务(service)代码 可以控制启动和停止系统服务 private bool StopService(string StopServiceName) { Serv…

c#
2015-05-02 865

#C#
C#实现的字符串加密和解密方法

C#实现的字符串加密和解密方法 public class Encrypt { //默认密钥向量 private static byte[] Keys = { 0x12, 0x34,…

c#
2015-05-02 868

#C#
C#监控文件夹并自动给图片文件打水印

C#监控文件夹并自动给图片文件打水印 using System; using System.Collections.Generic; using System.ComponentM…

c#
2015-05-02 334

#C#
C# 复制和移动文件的代码片段

复制文件代码片段 using System; using System.IO; class TestCopyFile { public static void Main() { F…

c#
2015-05-02 445

#C#
C# FTP操作类

using System; using System.Collections.Generic; using System.Text; using System.Net; using…

c#
2015-05-02 330

#C#
C#对集合类进行快速排序

C#对集合类进行快速排序 /// <summary> /// 对集合进行排序,如 /// List<User> users=new List<User…

c#
2015-05-02 199

#C#
C# 通过UDP进行异步通信的实例代码

C# 通过UDP进行异步通信的实例代码 服务器端: using System; using System.Collections.Generic; using System.Tex…

c#
2015-05-02 971

#C#
C# 操作windows注册表

此代码演示了如何读取和写入注册表 读取注册表 private string GetRegistShellData(string RegistName) { try { string…

c#
2015-05-02 785

#C#
C# 连接 MySQL 数据库的代码

using System; using System.Data; class MySqlConnect { static void Main() { string connStri…

c#
2015-05-02 784
1 12 13 14 15 16 24