c# - How to hide static method -


let's have classes, that:

class {    public static int count() } class b : { } class c : { } 

how can hide static method class b not c?

you can't, basically. heck, if it's public anyone can call it.

you make protected allow called within b or c not elsewhere... still couldn't differentiate between b , c.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -