You must Sign In to post a response.
  • Category: .NET

    Advantages of Static class

    A static class is basically the same as a non-static class, but there is one difference: a static class cannot be instantiated. In other words, you cannot use the new keyword to create a variable of the class type. Because there is no instance variable, you access the members of a static class by using the class name itself.As is the case with all class types, the type information for a static class is loaded by the .NET Framework common language runtime (CLR) when the program that references the class is loaded. The program cannot specify exactly when the class is loaded. However, it is guaranteed to be loaded and to have its fields initialized and its static constructor called before the class is referenced for the first time in your program. A static constructor is only called one time, and a static class remains in memory for the lifetime of the application domain in which your program resides.
  • #751171
    Hello kapil,

    I think you have tried to post an article here,
    This section is only to ask questions or issues regarding .net technology and dotnetspider.
    You should post it in article section with more elaboration and detailed content.

    You can post here articles and snippet after some time editors will take a look and they will grant you a points and money as well
    It depends on quality of your content.
    I hope you got my point.

    Nirav Prabtani (Senior Web Developer)
    Email :
    blog :

  • #751187
    Hi Kapil,

    It seems you have posted some kind of resource here. Please explain this in detail with some example and post it in the resource section. This will help others also. Below is the link where you can submit your articles-

    Once the web master, will approve your article it will be showing on the website.

    Ashutosh Jha

  • #751191

    Nice article but you can post this in Article section that could be reached most of the people those who are looking for the same, this section is only for clearing doubts purpose. So, I request you to post this in Article Section.

    Give respect to your work, Instead of trying to impress your boss.

    Blog :

  • #751205
    Hi Kapil, Thanks for such a nice information with us, Kindly as others said posst it in resource section and help to others by making clear doubts like this topics. Keep post such resources in DNS. Thanks for contributing.
    Rajesh B
    To Live More,Learn More

  • #751209
    Thanks to all for your Advices...

  • #751232
    Thanks for such a nice post, if you have a collection of such technical information or tips you can write a good artile/technical blog with it and deployed in our 'Article' section, if your article having a quality content then you may eligible for the Revenue cash/prize
    so hurry.
    Here is the link to post articles

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #751255
    I also post this in article section.

  • #760942

    Static class canot be institate no need take new instance

    public static class emp
    public static string dmp


    We can call this



    public static int a=0;


    Name : Dotnet Developer-2015
    Email Id :

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • Sign In to post your comments