请教高手为什么new
public class DepartmentStat: neusoft.neuFC.Object.neuObject { private System.String deptCode = ""; private System.String deptName = ""; private System.String pkID ; /// <summary> /// 重写ID =科室编码 /// </summary> public new string ID { get { return this.deptCode;} set { this.deptCode = value; base.ID = value; } }
/// <summary> /// 重写Name =科室名称 /// </summary> public new string Name { get { return this.deptName;} set { this.deptName = value; base.Name = value; } /// <summary> /// 主键列 /// </summary> public System.String PkID { get { return this.pkID; } set { this.pkID = value; } } } 为什么前两项需要new而最后一个不需要 }