In my solution I've just added a second class. I want my main class to be able to access some of the members of the second class, which won't be used in any other projects; its functionality is dependent upon the first class, though it's not really a subclass - more of a helper class.
What is the most appropriate access modifier for the methods/properties of the second class which the first class will need to use? I typically make my methods/properties either 'public' or 'private' depending upon whether trans-class access is necessary.
But I'd like to have a little better grasp of when I ought to use 'internal' or 'protected internal', and what the benefits are of doing so.
Thanks!
What is the most appropriate access modifier for the methods/properties of the second class which the first class will need to use? I typically make my methods/properties either 'public' or 'private' depending upon whether trans-class access is necessary.
But I'd like to have a little better grasp of when I ought to use 'internal' or 'protected internal', and what the benefits are of doing so.
Thanks!