title: Design: classes with same implementation but different method names
body: <p>I have multiple classes that have similar implementation for different named methods:</p>
  
  <pre><code>class MyClassX
  {
     public int MyClassXIntMethod(){}
     public string MyClassXStringMethod(){}
  }
  
  class MyClassY
  {
     public int MyClassYIntMethod(){}
     public string MyClassYStringMethod(){}
  }
  </code></pre>
  
  <p>the methods inside the classes have similar implementation but because the method's names are different (due to 3rd party constraints) i cannot use inheritance.</p>
  
  <p>I'm looking for an elegant solution that would be better than implementing the same functionality over and over again.</p>