1. 字符串中string str=null和string str=""和string str=string.Empty的区别?
2. byte b = 'a'; byte c = 1; byte d = 'ab'; byte e = '啊'; byte g = 256; 这些变量有些 错误是错再哪⾥?
3.string和StringBuilder的区别,两者性能的⽐较
4.什么是扩展⽅法?
5.byte a =255;a+=5;a的值是多少?
6.什么是装箱和拆箱?
7.值类型和引⽤类型的区别
8.new关键字的作⽤?
9. int?和int有什么区别?
10. C#中的委托是什么?
11.⽤最有效的⽅法算出2乘以8等于⼏?
12.const和readonly有什么区别
const和readonly都是用于声明不可变变量的关键字
13.现有⼀个整数number,请写⼀个⽅法判断这个整数是否是2的N次⽅
14.CTS、CLS、CLR分别作何解释
15.在.net中,配件的意思是?
16.分析下⾯代码,a、b的值是多少?
1 string strTmp = "a1某某某";
2 int a = System.Text.Encoding.Default.GetBytes(strTmp).Length;
3 int b = strTmp.Length;
17.Strings = new String(“xyz”);创建了⼏个String Object?
18.静态成员和⾮静态成员的区别
19.c#可否对内存直接操作
20.short s1 = 1; s1 = s1 + 1;有什么错? short s1 = 1; s1 += 1;有什么错?
21.什么是强类型,什么是弱类型?哪种更好些?为什么?
22.using关键字的作⽤
23.ref和out有什么区别
24.a.Equals(b)和a==b⼀样吗?
25.下⾯这段代码求值
1 class Class1
2 {
3 internal static int count = 0;
4 static Class1()
5 {
6 count++;
7 }
8 public Class1()
9 {
10 count++;
11 }
12 }
13 Class1 o1 = new Class1();
14 Class1 o2 = new Class1();
o1.count的值是多少?