先到网上下载PostgreSql.Data.PostgreSqlClient.dll 然后添加引用,使用命名空间 using PostgreSql.Data.PostgreSqlC…
string s=""; System.Net.IPAddress[] addressList = Dns.GetHostByName(Dns.GetHostN…
using System; using System.Collections.Generic; using System.ComponentModel; using System.…
C#获取本机IP地址和Mac地址的代码 查找了几个方法,经过调试修改,下面这个方法能很好的获取到本地的IP和MAC地址。可以用于这方面的功能实现。主要是要添加System.Mana…
这个C#类可以生成各种形式的缩略图,可以自动保持图片比例缩略,可以根据百分比获得图片尺寸等 using System; using System.Collections.Gener…
c# 使用AForge.NET操作摄像头操作代码 AForge.NET是一个专门为开发者和研究者基于C#框架设计的,这个框架提供了不同的类库和关于类库的资源,还有很多应用程序例子,…
namespace 修复网络连接 { public partial class form1 : Form { DateTime ds; int timescan; System.D…
首先到网上下载MySql.Data.MySqlClient.dll,然后添加引用到项目 using MySql.Data.MySqlClient; string connectSt…
public void ungzip(string path, string decomPath, bool overwrite) { //for overwriting purp…
using System; using System.IO; using System.IO.Compression; using System.Runtime.Serializa…
using System; using System.Text.RegularExpressions; using System.Text; namespace Ming { pu…
C#封装的Sqlite访问类,要访问Sqlite这下简单了,直接调用此类中的方法即可 using System; using System.Collections; using S…