c# 288

#C#
C#验证程序是否有strong name (P/Invoke)

比如在程序中,为了验证程序集是否有签名,可调用如下方法 [DllImport("mscoree.dll", CharSet=CharSet.Unicode)] …

c#
2015-08-20 601

#C#
C#启动,停止Windows服务

这项API提供的实用功能常常用来管理应用程序中的服务,而不必到控制面板的管理服务中进行操作。 ServiceController controller = new ServiceC…

c#
2015-08-20 322

#C#
读取操作系统和CLR的版本的C#代码

OperatingSystem os = System.Environment.OSVersion; Console.WriteLine(“Platform: {0}”, os.P…

c#
2015-08-19 692

#C#
C#读取CPU数量,内存容量

可以通过Windows Management Instrumentation (WMI)提供的接口读取所需要的信息。 private static UInt32 CountPhys…

c#
2015-08-19 188

#C#
C# 将 HTML 转成纯文本

/// <summary> /// Converts HTML to plain text. /// </summary> class HtmlToText…

c#
2015-08-13 273

#C#
操作Access数据库的C#封装类

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

c#
2015-08-13 493

#C#
C#实现一次分割多个文件

using System.IO; using System.Windows.Forms; OpenFileDialog dlg = new OpenFileDialog(); dl…

c#
2015-08-13 440

#C#
C#文件合并代码

using System; using System.IO; string filetomerge=@"C:\temp\data.bin"; string ta…

c#
2015-08-13 445

#C#
WPF 创建二维码

1.在http://zxingnet.codeplex.com/站点上下载ZXing .Net的第三方库 2.新建一个WPF工程 3.引入zxing.dll 4.添加引用空间 us…

c#
2015-08-12 277

#C#
C#的序列化与反序列化

反序列化(path为xml文件路径) public static List<T> GetXmlData(string path) { if (File.Exists(p…

c#
2015-08-01 839

#C#
ZPL条码打印类

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

c#
2015-07-24 902

#C#
一个用来调用DOS命令的C#操作类

一个用来调用DOS命令的C#操作类 /***********************************************************************…

c#
2015-07-24 805
1 3 4 5 6 7 24