摘要:using System; using System.Collections.Generic; using System.Management; using System.Runtime.InteropServices; using System.Text.RegularExpressions; n
阅读全文
随笔分类 - C#
摘要:// /// 获取网卡物理地址 /// /// public static string getMacAddr_Local() { string madAddr = null; ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); Manageme...
阅读全文
摘要:最近学习过程中,想到提取系统硬件信息做一些验证,故而对网上提到的利用.NET System.Management类获取硬件信息做了进一步的学习、验证。验证是分别在4台电脑,XP SP3系统中进行,特将验证过程记录于此。 说明: 电脑1(联想品牌电脑); 电脑2(HP品牌电脑); 电脑3(联想品牌电脑
阅读全文
摘要:public class Computer { public static string CpuID; //1.cpu序列号 public static string MacAddress; //2.mac序列号 public static string DiskID; //3.硬盘id public static stri...
阅读全文
摘要:先预备一个类,用于Start时调用 public static class MyPreApplicationStart { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { if (filters !
阅读全文
摘要:Web Api in Orchard Web Api is available in Orchard. You can implement a web api to fit your needs in a custom module. Creating Api Controllers The pro
阅读全文
摘要:AutoMapper 初步认识AutoMapper 前言 手动映射 使用AutoMapper 创建映射 Conventions 映射到一个已存在的实例对象 前言 通常在一个应用程序中,我们开发人员会在两个不同的类型对象之间传输数据,通常我们会用DTOs(数据传输对象),View Models(视图模
阅读全文
摘要:转自:http://www.cnblogs.com/zhangchenliang/p/4546352.htmlhttp://www.cnblogs.com/zhangchenliang/p/4546352.html 1、概述 log4net是.Net下一个非常优秀的开源日志记录组件。log4net记
阅读全文
摘要:public class Retry { // Methods public static void Do(Action action, int timeoutMS = 50, int retryCount = 3) { Do<object>(delegate { action(); return
阅读全文
摘要:给 VS 2010 选一个好用的代码行数统计器 给 VS 2010 选一个好用的代码行数统计器 分类: Tricks2011-02-25 05:40 3891人阅读 评论(0) 收藏 举报 2010c 推荐一个VS插件,支持2005/2008/2010。我从2005的时候就已经在用了。 不多说了,去
阅读全文
摘要:c#摄像头编程实例 摄像头编程 安装摄像头后,一般可以找到一个avicap32.dll文件 这是一个关于设想头的类 using system;using System.Runtime.InteropServices; namespace webcam{/// /// avicap 的摘要说明。///
阅读全文
摘要:[MethodImpl(MethodImplOptions.Synchronized)]
多线程按顺序执行
阅读全文
摘要:无需Try catch 的UI事件封装类
阅读全文
摘要:Setup Project 错误
阅读全文
摘要:原文地址:http://blog.csdn.net/sabty/article/details/4392983
阅读全文