日期:2014-05-17  浏览次数:20816 次

可访问性问题
我在Form窗体代码添加了一个结构体
struct RectanglePacking //矩形件
  {
  public Point p1, p2;
  public RectanglePacking(Point p1, Point p2)
  {
  this.p1 = p1;
  this.p2 = p2;
  }
  }
并写一个类StockAndPlate,类中有
public static List<RectanglePacking> rectangleList = new List<RectanglePacking>();
出现错误提示:可访问性不一致: 字段类型“System.Collections.Generic.List<StockLayout1_2.RectanglePacking>”比字段“StockLayout1_2.StockAndPlate.rectangleList”的可访问性低
搞不懂。。