title: How to design a c# class for both windows form and console app and also for web app
body: <p>I have a class in c# for windows form application but they say I can make it generic in such a way so I can use it anywhere I want. How can I do that? Thanks in advance.</p>
  
  <p>My class is like that at the moment:</p>
  
  <pre><code>namespace nyp5
  {
      public partial class Form1 : Form
      {
       ....
      }
  }
  </code></pre>