VS 2017版本 Set限制问题
class Child
{
private string sex;
private int age;
private double height;
public string Sex
{
get { return sex; }
set { sex = value; }
}
public int Age { get => age; set => age = value; }
public double Height { get => height; set => height = value; }
}在这个封装公式里面怎么添加Set判断逻辑?