title: C# constructor in interface
body: <p>I know that you can't have a constructor in an interface, but here is what I want to do:</p>
  
  <pre><code> interface ISomething 
   {
         void FillWithDataRow(DataRow)
   }
  
  
   class FooClass&lt;T&gt; where T : ISomething , new()
   {
        void BarMethod(DataRow row)
        {
             T t = new T()
             t.FillWithDataRow(row);
        }
    }
  </code></pre>
  
  <p>I would really like to replace <code>ISomething</code>'s <code>FillWithDataRow</code> method with a constructor somehow.</p>
  
  <p>That way, my member class could implement the interface and still be readonly (it can't with the <code>FillWithDataRow</code> method).</p>
  
  <p>Does anyone have a pattern that will do what I want?</p>