title: How to create common method used in Web form as well as Windows form
body: <p>I want to create a common method which will use in both web as well as windows form.</p>
  
  <p>Currently I have class like</p>
  
  <pre><code>public class Demo
  {
  
     public object getData(object o)
     {
        //Code use by both windows and webform
     }
  
  }
  </code></pre>
  
  <p>I want to use getData(..) method in both windows as well as web form.</p>
  
  <p>how can I do this ?</p>
  
  <p>Thanks</p>