Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7616033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:47:31+00:00 2026-05-31T02:47:31+00:00

I am writing a web application and there I have created a class with

  • 0

I am writing a web application and there I have created a class with Main method. I am in VS2010.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Dao {
    /// <summary>
    /// Summary description for User
    /// </summary>
    public class User {

        public User() {
            //
            // TODO: Add constructor logic here
            //
        }

        public static void Main(String[] args) {
            Console.WriteLine("JYM");

        }
    }
}

Is there any way to run that particular class’s Main() without running the complete application?


The purpose is for testing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:47:33+00:00Added an answer on May 31, 2026 at 2:47 am

    I assume you are trying to write unit test for your applications.

    In case if you are using the inbuilt MS-Test for this, you can debug your tests from the Test menu.

    Test -> Run -> ….options for running tests…

    In the Test results window you can see all the tests and debug using the debug option.

    In case if you are using NUnit for this, you need to create a new C# console applicaition and add a reference to the test project and then call the class and methods of your test project in this console applicaiton and debug them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been writing Selenium test for web application and there seem to be
I'm writing a web application using the Catalyst framework . I'm also using a
I am writing a web application which retrieves a lot of data using AJAX
I'm currently writing a web application that have about 6-12 pages. On each one
I have created a webview application to run a web application on an android
I have been writing a small web application in C# .NET4.0 to try and
I am currently writing an web application where you need to log in, using
I have a system that we have recently developed - a web application over
In a web application, writing javascript is a common work, and I have tried
I am writing a web application using Spring MVC. I am using annotations for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.