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 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -