随笔分类 -  C#

C#中的运算(移位、异或、与、或)
摘要:using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace ConsoleApplication3{ class Program { static void Main(string[] args) { ///<summary> /// 移位运算 /... 阅读全文
posted @ 2010-04-21 18:32 aparche 阅读(22653) 评论(0) 推荐(0)
注册系统热键
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;names... 阅读全文
posted @ 2010-04-16 17:58 aparche 阅读(280) 评论(0) 推荐(1)
C#中判断空字符串
摘要:首先明确””,null和string.Empty的区别:   string.Empty:不分配存储空间。  "":分配一个长度为空的存储空间 ,""和String.Empty,这两个都是表示空字符串,空字符串是一个特殊的字符串,只不过这个字符串的值为空,在内存中是有准确的指向的。  string.Empty就相当于"",一般用于字符串的初始化。比如: string a = ... 阅读全文
posted @ 2010-03-15 17:31 aparche 阅读(1346) 评论(0) 推荐(0)