image

编辑人: 青衫烟雨

calendar2025-06-05

message9

visits586

双语面试题(.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连接中起到什么样的角色)

喵呜刷题:让学习像火箭一样快速,快来微信扫码,体验免费刷题服务,开启你的学习加速器!

创作类型:
原创

本文链接:双语面试题(.NET的)

版权声明:本站点所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明文章出处。
分享文章
share