【发布时间】:2012-02-01 08:30:38
【问题描述】:
.net 网络应用程序的网络形式的整个程序:
namespace WebApplication1
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string x = "";
string y = String.Empty;
}
}
}
如果我构建应用程序,编译器会在 x 下划线,
变量 x 被赋值,但它的值从未被使用过
对于 y,我没有下划线。为什么不? (VS 2008,.Net 3.5)
【问题讨论】: