What is the following error :
Inconsistent accessibility: parameter type ‘—-.Messagetypes’ is less
accessible than method ‘—.MessageBox—.Messagetypes, string)’
my code :
public partial class Global
{
private enum Messagetypes { Error };
public void MessageBox(Messagetypes MessageDisplay, string MessageError)
{
}
}
What is the correct code
Messagetypesis private, but is a parameter to apublicfunction. The only people that would ever be able to call it are otherprivatemembers. Either change your function toprivate, or change yourenumtopublic.