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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

c++ - How to test/verify that zero-initialization takes place -

node.js - Webpack/TypeScript Raising Errors When node_modules is Excluded -