title: How to have inherited DataRow class so inherited DataTable can have DataTable.NewRow()
body: <p>So I would like to extend the <code>DataRow</code> class by adding int to the class Obviously it is simple </p>
  
  <pre><code>public class DataRowWithInt : DataRow
  {
      // Properties ///////////////////////////////////////////////////
  
      public int integer
      {
          get;
          set;
      }
  
      // Constructor //////////////////////////////////////////////////
  
      public DataRowWithInt(DataRowBuilder builder)
          : base(builder)
      {
      }
  }
  </code></pre>
  
  <p>Now when you want to create new row you would have to call </p>
  
  <pre><code>DataTable intDataTable = new DataTable();
  intDataTable.Columns.Add("temp");
  DataRowWithInt row = intDataTable.NewRow();
  </code></pre>
  
  <p>But this gives you conversion error. How can I avoid this problem and get <code>DataRowWithInt</code> to <code>intDataTable</code>?</p>
  
  <p>Thank you.</p>
  
  <p>-- edit --</p>
  
  <p>I am aware that DataTable class is not going to return me DataRowWithIn.
  I would like to create an inherited DataTable class but I do not know what to write on NewRow class</p>