我有我的usercontrol屬性,但是當我添加usercontrol到我的foem並想運行,我在visual studio 2010上得到這個錯誤,但這個錯誤dosn't出現在VS 2008 : 「無效的ResX文件無法加載類型System.Collections.Generic.List ......。」無效的Resx文件。無法加載類型System.Collections.Generic.List
[Serializable]
public class ActionPoint
{
public string CarInfo;
public string RightStationName;
public string RightStationInfo;
public string LeftStationName;
public string LeftStationInfo;
public ActionPoint()
{
}
}
public class Line : UserControl
{
public List<ActionPoint> Stations
{
get { return Stations; }
set { Stations = value; }
}
}
是否形式有'ImageList',並該項目針對.NET 3.5? – 2011-05-11 22:42:46