错误 1 可访问性不一致: 参数类型“System.Collections.Generic.List<StudyDrive.BLL.Question>”比方法“StudyDrive.See.See(System.Collections.Generic.List<StudyDrive.BLL.Question>)”的可访问性低 F:\My projects\StudyDrive\StudyDrive\See.cs 19 16 StudyDrive
用泛型的时候出现了这个问题,就是往其他窗体传参的时候出现的。代码如下:
这个是调用页面
List<Question> list = null;
private void button1_Click(object sender, EventArgs e)
{
See see = new See(list);
see.Show();
}
这个是被调用页面
List<Question> list = null;
public See()
{
InitializeComponent();
}
public See(List<Question> mylist)
{
InitializeComponent();
this.list = mylist;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货