我的位置: 首页 > 学习专区 > .NET技术 > 双语面试题(.NET的)

双语面试题(.NET的)

2012-10-25 13:58:00
来源:
[导读] 1. What does the ThreadStatic attribute do?(线程静态成员的作用是什么)2. Does C# support multiple inheritance?(C#支持多...
1. What does the ThreadStatic attribute do?

(线程静态成员的作用是什么)

2. Does C# support multiple inheritance?

(C#支持多重继承吗)

3. C# provides, by default a parameterless constructor. If I write a constructor that takes a string as a parameter, but want to keep the parameterless constructor. How many constructors should I write?

(C#提供默认构造函数(不带参数),如果我写了一个带有一个string类型参数的构造函数,但是又想保留不带参数的构造函数,那么我需要写多少个构造函数)

4. What’s the difference between an interface and abstract class?

(接口与抽象类有什么区别)

5. What’s the difference between deep copy and shallow copy?

(深拷贝与浅拷贝有什么区别)

6. If an exception is thrown inside a catch block, will the finally block be still be called?

(如果catch块捕获了一个异常,那么finally块还会被调用吗)

7. a)Can a struct inherit from another struct?

(结构体能继承结构体吗)

b)Can a struct inherit from another class?

(结构体能继承类吗)

c)Can a struct be the base of another class?

(结构体可以作为一个类的基类吗)

d)Can a struct implement an interface?

(结构体可以实现一个接口吗)

e)What’s the difference between struct and class?

(结构体与类有什么区别)

8.What’s the difference between Debug and Trace class?

(Debug类与Trace类有什么区别)

9. What’s the final result?

(下面这段代码的最终运行结果是什么)

double expectedValue = 1/2;

if(expectedValue > 0)

{

expectedValue = expectedValue + 0.5;

}

Console.WriteLine(expectedValue);

10. What is the role of the DataReader class in ADO.NET connections?

(DataReader在ADO.NET连接中起到什么样的角色)

大家都关注:
评论
热点专题
>>