title: Accessing a private method from another class
body: <p>I have two repository classes (<code>RepositoryFactory</code> and <code>BaseRepository</code>) implementing different interfaces within the same project. The <code>BaseRepository</code> class has a private method that would be now needed also in the other class, with the same implementation.</p>
  
  <p>Instead of duplicate the method in order to keep it private, I was thinking to a possible alternative, although so far I could not find a good solution since by definition a private method has scope only in its own class.</p>
  
  <p>Using inheritance and change the method to "protected" would also not be an option, since the two classes are not linked semantically. I cannot use a public property giving back the result of the method since the return type is void.</p>