c#用枚举类型时出现了访问不一致的问题怎么解决
public string name;
public int age;
private Gender sex;
public Child(string name, int age, Gender sex)
{
this.name = name;
this.age = age;
this.sex = sex; }