0
私は入れません: -エラー1一貫性のないアクセス:パラメータの型
エラー1つの一貫性のないアクセス:パラメータの型は 'System.Collections.Generic.List' 私が持っている
方法よりも少ないアクセス可能です何が間違っているのか分からない、助けてください
List<receipt> _list;
string _total, _cash, _change, _date;
public Form8(List<receipt> datasource, string total, string cash, string change, string date)
{
InitializeComponent();
_list = datasource;
_total = total;
_cash = cash;
_change = change;
_date = date;
}
class receipt
{
public int id { get; set; }
public string productname { get; set; }
public string type { get; set; }
public int quantity { get; set; }
public double price { get; set; }
public string Total { get { return string.Format("{0}kz", price * quantity); } }
}
私は 'class Form8'と' Form8() 'がpublicであり、領収書に修飾子がないか' internal 'であると推測します – john
領収書を表示できますか?クラスを投稿してください。 – horotab
[パラメータはメソッドよりアクセスしにくい](https://stackoverflow.com/questions/9726974/parameter-is-less-accessible-than-method) – john