Protected to Public

  • Thread starter Thread starter Alexander Muylaert
  • Start date Start date
A

Alexander Muylaert

Hi


How can I make a protected property public in inherited classes?

Is their a better way than what I just did below?
new public bool Sorted {

get {return base.Sorted;}

set {base.Sorted = value;}

}



Kind regards



Alexander
 
hi
i don't think there is a better way since you can't remove a security
restriction declared by your base class , you can just add to it but not
the other way around
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top