【发布时间】:2013-12-13 16:43:50
【问题描述】:
我已经在论坛中查看了我的问题,说它是私有的,但是我已经将我所有的方法和类都公开了,但我仍然收到这个错误:
Error1 可访问性不一致:字段类型“
A_Day_at_the_races.Bet”的可访问性低于字段“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
}
【问题讨论】:
-
向我们展示 Bet 类定义。
标签: c#