List _list; string _total,_cash,_change,_date;参数类型'System.Collections.Generic.List <WindowsFormsApplication8.receipt''比方法更难以访问
public Form8(List<receipt> datasource, string total, string cash, string change, string date)
{
InitializeComponent();
_list = datasource;
_total = total;
_cash = cash;
_change = change;
_date = date;
}
在这里,我得到了一个错误。
错误1可访问性不一致:参数类型 'System.Collections.Generic.List' 比方法更少可访问的“WindowsFormsApplication8.Form8.Form8(System.Collections.Generic.List,字符串,字符串,字符串,字符串) “C:\用户\ thush \文档\的Visual Studio 2012 \项目\ WindowsFormsApplication8 \ WindowsFormsApplication8 \ Form8.cs 18 16 WindowsFormsApplication8
最有可能的'收据'类型是不公开的。公开。 – CodingYoshi