1
Reply

When should I use static in C#?

Sudhir Goswami

Sudhir Goswami

Jun 10, 2013
1.1k
0

    The only difference between a static and a non-static method is that a non-static method has a hidden "this" parameter passed to it that allows you to access all the non-static fields in the object.A static method does not get passed the hidden "this" parameter, and therefore does not have access to any of the object's non-static fields.

    Jitendra Patel
    September 02, 2014
    0