Я уже рассматривал форум на предмет своей проблемы, говоря что-то об этом, но я поместил все свои методы и класс в общедоступные, но я все равно получаю эту ошибку:Несогласованная ошибка доступности с открытым полем
Error1 Inconsistent accessibility: field type '
A_Day_at_the_races.Bet
' is less accessible than field 'A_Day_at_the_races.Guy.MyBet
'
Это мой код:
public class Guy
{
public string Name; // The Guy's name
public Bet MyBet; // An instance of Bet() that has his bet
public int Cash; //How much cash he has
// GUI controls on the form
public RadioButton MyRadioButton; // My RadioButton
public Label MyLabel; // My Label
}
Покажите нам определение класса ставок. –