title: Extension Method for Generic Class
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/1825952/c-generic-extension-method">C# -Generic Extension Method</a><br>
    <a href="https://stackoverflow.com/questions/68750/how-do-you-write-a-c-extension-method-for-a-generically-typed-class">How do you write a C# Extension Method for a Generically Typed Class</a>  </p>
  </blockquote>
  
  
  
  <p>Is it possible to declare extension methods for generic classes?</p>
  
  <pre><code>public class NeedsExtension&lt;T&gt;
  {
      public NeedsExtension&lt;T&gt; DoSomething(T obj)
      {
          // ....
      }
  }
  </code></pre>