开发者

Why can't I find the Var keyword in my Visual C# 2008 Studio?

I have this version:

Microsoft Visual C# 2008 Express Edition

U开发者_如何学JAVAsing this function:

var X = new WebClient(); 

Var isn't recognized by my IDE. Thanks.


Are you trying to use it for a class member? var is only valid for local variables within a function.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜