title: Running Main method in Web Application in VS2010
body: <p>I am writing a web application and there I have created a class with Main method. I am in VS2010. </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  
  namespace Dao {
      /// &lt;summary&gt;
      /// Summary description for User
      /// &lt;/summary&gt;
      public class User {
  
          public User() {
              //
              // TODO: Add constructor logic here
              //
          }
  
          public static void Main(String[] args) {
              Console.WriteLine("JYM");
  
          }
      }
  }
  </code></pre>
  
  <p>Is there any way to run that particular class's Main() without running the complete application? </p>
  
  <hr>
  
  <p>The purpose is for testing.</p>