C# Static Behaviour
Why Use Static Behavior? To date, the methods, properties and constructors that have been described in this tutorial have all related to instantiated objects of classes. In each case, these members have defined how the individual objects behave and how they maintain and manipulate their own state. Sometimes you will want to create behavior that is not linked to any individual object, instead being available to all instances and to objects of other classes. This is where static members become useful. A good example of a static method is the Main method, which is used in every executable program. When … Click here to continue reading.