七星揽月

Efforts To Make The Best Of Their……
一口吃不出一个胖子,但胖子却是一口一口吃出来的,只要能每天坚持下来,我相信,一定会有收获的
每天进步一点点
  博客园  :: 首页  :: 新随笔  :: 联系 :: 管理

12 2012 档案

摘要:我们在利用C#开发桌面程序(Winform)程序的时候, 经常需要获取一些跟系统相关的信息, 以下这些代码获取能有些用处。 c#中如何获取本机用户名、MAC地址、IP地址、硬盘ID、CPU序列号、系统名称、物理内存。 首先需要引入命名空间: using System.Management;/// 操作系统的登录用户名:string GetUserName(){ try { ... 阅读全文

posted @ 2012-12-19 11:13 期星揽月 阅读(836) 评论(1) 推荐(1)

摘要:SharePoint - Content Type ID's Content types are little gems within SharePoint with many useful characteristics. The one characteristic is that content types support inheritance. For the non progr... 阅读全文

posted @ 2012-12-13 09:34 期星揽月 阅读(192) 评论(0) 推荐(0)

摘要:/// <summary>/// 将 Stream 转成 byte[]/// </summary>public byte[] StreamToBytes(Stream stream){byte[] bytes = new byte[stream.Length];stream.Read(bytes, 0, bytes.Length); // 设置当前流的位置为流的开始stream.Seek(0, S... 阅读全文

posted @ 2012-12-05 14:11 期星揽月 阅读(216) 评论(0) 推荐(0)

摘要:如何创建强命名程序集 =================== 1. 在Visual Studio中的class library工程上点右键, 选择properties. 2. 选择左边的Signing选项卡. 3. 勾选Sign the assembly复选框. 在下拉列表中选择<New...>. 4. 在弹出的对话框中给snk文件起一个名字. 按OK. 5. 程序集强命名完成... 阅读全文

posted @ 2012-12-04 09:38 期星揽月 阅读(337) 评论(0) 推荐(0)