Ajay Patel

Ajay Patel

  • NA
  • 147
  • 255.2k

Hide public property of base class in Child Class

Jan 8 2014 4:39 AM
Hello,
 
I have following example.
public class clsMobileDataSharing
{
public DateTime? EventDate { get; set; }
public string Message { get; set; }
public MobileEventName EventName { get; set; }
public int? AgencyID { get; set; }
public string PersonnelPK { get; set; }
}
[Serializable]
public class clsPoliceDataSharing : clsMobileDataSharing
{
public TempEvents EventNameTemp { get; set; }
 
 When I create object of Child class then it display base class's "EventName" property. I don't want this.
 
How to hide base class property in child class ?
 

Answers (3)