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 9237503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:32:58+00:00 2026-06-18T07:32:58+00:00

I have 2 Console Applications (Console1 and Console2) in one solution. Both applications reference

  • 0

I have 2 Console Applications (Console1 and Console2) in one solution. Both applications reference a class library (CL). CL contains a static class (SC) which contains fields that are set per constructor.

My question is if I call the static class within Console1 and the constructor of the SC is called upon first calling any of Console1’s containing static methods and fields are set within SC. Now if I run Console2 concurrently, though independently, and also access the SC, what is the precise scope of the static class SC? Will any changes such as calling its constructor that originated from within Console1 have any bearing whatsoever on how the SC behaves when being used in Console2?

  • 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-06-18T07:32:59+00:00Added an answer on June 18, 2026 at 7:32 am

    The scope is the AppDomain.

    Because you have two separate processes, you have two separate AppDomains and two separate “instances” of the static class. There is no state sharing – none at all.

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

Sidebar

Related Questions

I have a console application project and library project (dll) in one solution. The
Currently I have a C# solution that contains a class library, installer, and setup
I have an integration test suite(which is a class library) and one of the
I have 2 projects in my solution. The first one is a console application,
I have a Visual Studio solution that contains two projects. One is a Windows
I have a VC++ 2010 solution with multiple project, one of which is a
I have a solution with many projects. All are reusable class libraries except one
I have three c# projects in my solution. One is a console app that
I've got a VS2008 C++ solution containing one project which is a Win32 console
I have a C# class library which starts up a background consumer thread (lazily)

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.