我对Visual Studio 2012有一个问题。在接下来的操作: file - create - project - Application Windows Forms之后,我收到了这样一条消息:“无法为该文件显示设计器,因为其中的任何类都无法设计”。我什么也不做。我已经试过修复VS了,但还是无能为力。请告诉我该怎么解决这个问题。代码如下:
Program.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
因此,我一直在本地操作我的机器,试图解析一个XML文档。这是我的密码:
XDocument xmlInput = XDocument.Load(new StringReader(xml));
var properties = from p in xmlInput.Descendants("Property")
select new
{
PropertyID = Int32.Parse(p.Value)
}