I am making a class library. This class library has a class in it called Task Controller. It contains methods that rely on data that are formed in the primary client of the class library.
How can I make it so the Task controller class is only accessible once a coder has created an instance of the Client.
Want the coder to invoke it as following : Client.TaskController.foo()
Maybe you want a public Property
TaskController
of the public classTaskController
that itself can only be instantiated by your library using a private or internal constructor.More information about
internal
keyword on MSDN.