Help solve the problem: class A is inherited from class B, a class C has one method that should be available only to class A. How can this be implemented using C # (.NET 3.5)?
Class C is my singleton that is initialized once with class A (a parameter is passed from class A), and I would like to make sure that other classes know nothing about that method with a parameter in class C that creates this single instance of class C, and for them only the method for receiving a singleton object was available.
class A is a class in the Global.asax file (a kind of global application class) so I was told that I would load data for the logged-in user during authentication (with the condition that they are not loaded into the session)