private int salary; public int Salary { get { return salary; } set { value = salary; }//是 salary = value; 你写反了。另外两处同理 }
代码错了