title: Returning null value from generic method
body: <p>So i have this method:</p>
  
  <pre><code>    internal K GetValue&lt;T, K&gt;(T source, string col) where T : IBaseObject
      {
          string table = GetObjectTableName(source.GetType());
          DataTable dt = _mbx.Tables[table];
          DataRow[] rows = dt.Select("ID = " + source.ID);
          if (rows.Length == 0) return K;
  
          return (K) rows[0][col];
      }
  </code></pre>
  
  <p>I want to be able to return a null, or some kind of empty value, if no rows are found. What's the correct syntax to do this?</p>