I've been fighting over this error because I've alredy read lots of questions in this blog but unfortunately, none of them have helped me.
The answers of those question say that the class in which the error is being held, should be public, and that seems to solve the problem. But all my classes are public, so I don't know which the problem or error is.
Error: Inconsistent accessibility: parameter type 'Parqueo.ClaseEmpleado' is less accessible than method 'Parqueo.FormMenuAdmin.FormMenuAdmin(Parqueo.ClaseEmpleado)'
Here is a my code:
namespace Parqueo
{
public partial class FormMenuAdmin : Form
{
public ClaseEmpleado Empleado = new ClaseEmpleado();
public FormMenuAdmin(ClaseEmpleado _Empleado) //'FormMenuAdmin' is marked as the red errod
{
Empleado = _Empleado;
InitializeComponent();
}
private void FormMenuAdmin_Load(object sender, EventArgs e)
{
//label1.Text = "Bienvenido" + Empleado._Nombre;
}
}
}