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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:43:54+00:00 2026-05-25T10:43:54+00:00

I read some articles about static classes but I have some questions: Where take

  • 0

I read some articles about static classes but I have some questions:

  1. Where take static classes place in memory?

  2. According to C# Static Methods : means that you want the declaration to refer to a single location If I use static classes in Asp.Net is it mean I have a location that share between all requests?

  3. I read in the articles that static classes and static methods are faster that instance-oriented classes,so why I don’t see them in every where.I mean in .Net there is a few static classes and methods exist too.

  • 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-25T10:43:55+00:00Added an answer on May 25, 2026 at 10:43 am

    1.

    Static classes are loaded automatically by the .NET Framework common
    language runtime (CLR) when the program or namespace containing the
    class is loaded.

    So it means that the static classes are loaded in memory. This mean that you would not like that all your classes are loaded in memory when your process starts.

    2.Static classes in asp.net are saved in application state, so yes, you have a location that share between all requests.
    Static methods are useful in asp.net but only if you don’t use static objects inside of the methods because you may get in trouble with different threads accessing modifying the same vaiable.

    3.If you use a lot static classes they will be loaded in memory and that’s not necesarly something you would want.

    See this link for more information:
    static variables in asp.net/C#

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

Sidebar

Related Questions

Though I have read some WCF articles about message contract, but I am not
I just got Delphi 2009 and have previously read some articles about modifications that
I have read some articles on POCO in the enttity framework but still don't
I read some articles about the volatile keyword but I could not figure out
I've already read some articles about this matter, but I'd like to ask once
I have read some articles about this matter... and it seems that the Repeater
I've read some articles about ChartImageHandler storage options, and it seems to have 3
I'm completely confused about the event handling. I read some articles about it but
I have read some webpages and articles about llvm and I am quite interested
I'm thinking about security problems, made some questions, read some articles..... it's too difficult

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.