我正在尝试创建用于存储信息的类实例列表,但出现此错误:
Error 1 Inconsistent accessibility: property type 'System.Collections.Generic.List<POS_System.ReportReciepts>' is less accessible than property 'POS_System.Reports24Hours.recieptlist'
任何线索为什么?我试过弄清楚,但我不知道这是怎么回事。这是我抛出错误的代码和我的课程。谢谢!
public partial class Reports24Hours : Form
{
string category = "";
public int WhichReciept = 0;
public static List<ReportReciepts> recieptlist { get; set; } //Error here
...
}
.
class ReportReciepts
{
public string[] Quantity { get; set; }
public string[] ItemName { get; set; }
public string[] Price { get; set; }
}