lenmom

博客园 首页 新随笔 联系 订阅 管理

随笔分类 -  C#

上一页 1 2 3 4

摘要:using System; using System.Collections.Generic; using System.Management; using System.Runtime.InteropServices; using System.Text.RegularExpressions; n 阅读全文
posted @ 2018-03-14 14:55 老董 阅读(5433) 评论(0) 推荐(0) 编辑

摘要:// /// 获取网卡物理地址 /// /// public static string getMacAddr_Local() { string madAddr = null; ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); Manageme... 阅读全文
posted @ 2018-03-13 14:47 老董 阅读(1297) 评论(0) 推荐(0) 编辑

摘要:最近学习过程中,想到提取系统硬件信息做一些验证,故而对网上提到的利用.NET System.Management类获取硬件信息做了进一步的学习、验证。验证是分别在4台电脑,XP SP3系统中进行,特将验证过程记录于此。 说明: 电脑1(联想品牌电脑); 电脑2(HP品牌电脑); 电脑3(联想品牌电脑 阅读全文
posted @ 2018-03-13 14:34 老董 阅读(20971) 评论(1) 推荐(0) 编辑

摘要:public class Computer { public static string CpuID; //1.cpu序列号 public static string MacAddress; //2.mac序列号 public static string DiskID; //3.硬盘id public static stri... 阅读全文
posted @ 2018-03-13 14:27 老董 阅读(306) 评论(0) 推荐(0) 编辑

摘要:先预备一个类,用于Start时调用 public static class MyPreApplicationStart { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { if (filters ! 阅读全文
posted @ 2018-03-09 12:57 老董 阅读(210) 评论(0) 推荐(0) 编辑

摘要: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 阅读全文
posted @ 2018-03-08 18:50 老董 阅读(207) 评论(0) 推荐(0) 编辑

摘要:AutoMapper 初步认识AutoMapper 前言 手动映射 使用AutoMapper 创建映射 Conventions 映射到一个已存在的实例对象 前言 通常在一个应用程序中,我们开发人员会在两个不同的类型对象之间传输数据,通常我们会用DTOs(数据传输对象),View Models(视图模 阅读全文
posted @ 2018-02-23 14:54 老董 阅读(283) 评论(0) 推荐(0) 编辑

摘要:转自:http://www.cnblogs.com/zhangchenliang/p/4546352.htmlhttp://www.cnblogs.com/zhangchenliang/p/4546352.html 1、概述 log4net是.Net下一个非常优秀的开源日志记录组件。log4net记 阅读全文
posted @ 2017-05-31 16:55 老董 阅读(964) 评论(0) 推荐(0) 编辑

摘要:public class Retry { // Methods public static void Do(Action action, int timeoutMS = 50, int retryCount = 3) { Do<object>(delegate { action(); return 阅读全文
posted @ 2016-07-19 18:54 老董 阅读(152) 评论(0) 推荐(0) 编辑

摘要:给 VS 2010 选一个好用的代码行数统计器 给 VS 2010 选一个好用的代码行数统计器 分类: Tricks2011-02-25 05:40 3891人阅读 评论(0) 收藏 举报 2010c 推荐一个VS插件,支持2005/2008/2010。我从2005的时候就已经在用了。 不多说了,去 阅读全文
posted @ 2014-10-09 15:25 老董 阅读(221) 评论(0) 推荐(0) 编辑

摘要:C# Windows消息过滤 阅读全文
posted @ 2014-05-15 15:53 老董 阅读(825) 评论(0) 推荐(0) 编辑

摘要:C#预编译 阅读全文
posted @ 2014-05-14 16:44 老董 阅读(3868) 评论(0) 推荐(1) 编辑

摘要:c#摄像头编程实例 摄像头编程 安装摄像头后,一般可以找到一个avicap32.dll文件 这是一个关于设想头的类 using system;using System.Runtime.InteropServices; namespace webcam{/// /// avicap 的摘要说明。/// 阅读全文
posted @ 2014-05-07 21:21 老董 阅读(953) 评论(0) 推荐(0) 编辑

摘要:[MethodImpl(MethodImplOptions.Synchronized)] 多线程按顺序执行 阅读全文
posted @ 2014-04-16 11:33 老董 阅读(207) 评论(0) 推荐(0) 编辑

摘要:定位程序集 阅读全文
posted @ 2014-04-10 16:45 老董 阅读(215) 评论(0) 推荐(0) 编辑

摘要:处理异常 阅读全文
posted @ 2014-04-01 12:21 老董 阅读(1033) 评论(0) 推荐(0) 编辑

摘要:无需Try catch 的UI事件封装类 阅读全文
posted @ 2014-04-01 12:06 老董 阅读(512) 评论(0) 推荐(0) 编辑

摘要:C# 给某个方法设定执行超时时间 阅读全文
posted @ 2014-03-26 18:00 老董 阅读(319) 评论(0) 推荐(0) 编辑

摘要:Setup Project 错误 阅读全文
posted @ 2014-01-28 10:26 老董 阅读(1504) 评论(1) 推荐(0) 编辑

摘要:原文地址:http://blog.csdn.net/sabty/article/details/4392983 阅读全文
posted @ 2013-11-28 13:47 老董 阅读(271) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4