.NET/C#⾯试题汇总系列:ADO.NET、XML、 HTTP、AJAX、WebService - Forms
1. .NET和C#有什么区别?
.NET⼀般指 .NET FrameWork框架,它是⼀种平台,⼀种技术。
C#是⼀种编程语⾔,可以基于.NET平台的应⽤。
2.请编程遍历⻚⾯上所有TextBox控件并给它赋值为string.Empty?
foreach (System.Windows.Forms.Control control in this.Controls)
{
if (control is System.Windows.Forms.TextBox)
{
System.Windows.Forms.TextBox tb = (System.Windows.Forms.TextBox)control; 拼多多帮助力入口
tb.Text = String.Empty;
}
}
3.CTS、CLS、CLR分别作何解释?
CTS:通⽤语⾔系统。CLS:通⽤语⾔规范。CLR:公共语⾔运⾏库。
4.什么是受管制的代码?
unsafe:⾮托管代码。不经过CLR运⾏。
5.什么是强类型系统?
RTTI:类型识别系统。
6.列举http://ASP.NET⻚⾯之间传递值的⼏种⽅式。
使⽤QueryString, 如....?id=1; response. Redirect()....
相关链接