whoopdeedo5555
New member
I have two constrcutors like below where I try to pass an Array of Food and an integer when I create the form. My code will not compile. It is telling me - "inconsistent accessibility: parameter type is less accessible than method. Any ideas ?
public partial class frmDailyLog : Form
{
int intCount;
public frmDailyLog()
{
}
public frmDailyLog(Food[] consumedFoods, int count)
{
InitializeComponent();
intCount = count;
}
private void frmDailyLog_Load(object sender, EventArgs e)
{
}
}
}
public partial class frmDailyLog : Form
{
int intCount;
public frmDailyLog()
{
}
public frmDailyLog(Food[] consumedFoods, int count)
{
InitializeComponent();
intCount = count;
}
private void frmDailyLog_Load(object sender, EventArgs e)
{
}
}
}