栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > NET面试题库

双语面试题(.NET的)

双语面试题(.NET的)

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连接中起到什么样的角色)

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/266316.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号