错误1 可访问性不一致:参数类型

Error 1 Inconsistent accessibility: parameter type

我不断收到:-

Error 1 Inconsistent accessibility: parameter type 'System.Collections.Generic.List' is less accessible than method

我不知道哪里出了问题,请帮忙

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); } }



    }

只做收据public。如果调用者甚至无法访问收据,则无法在 form8 构造函数中请求这些列表。