Static Key Word in C# with examples c# static keyword static keyword in c# static keyword



static is a modifier in C# which is applicable for the following:

Classes
Variables
Methods
Constructor
It is also applicable to properties, event, and operators. To create a static member(class, variable, methods, constructor), precede its declaration with the keyword static. When a member is declared static, it can be accessed with the name of its class directly.