title: Extension method must be defined in non-generic static class
body: <p>Error at:</p>
  
  <pre><code>public partial class Form2 : Form
  </code></pre>
  
  <p>Probable cause:</p>
  
  <pre><code>public static IChromosome To&lt;T&gt;(this string text)
  {
      return (IChromosome)Convert.ChangeType(text, typeof(T));
  }
  </code></pre>
  
  <p>Attempted (without static keyword):</p>
  
  <pre><code>public IChromosome To&lt;T&gt;(this string text)
  {
      return (IChromosome)Convert.ChangeType(text, typeof(T));
  }
  </code></pre>