C# new keyword to override access modifier on a property from a 3rd party lib -
i'm using 3rd party lib following class:
class base { protected int count { get; } } i inherit class in code, however, count public property. following considered bad in way? there other ways it?
class derived : base { public new int count { { return base.count; } } }
Comments
Post a Comment