C# Static method and variables

Whenever you write a function or declare a variable, it doesn’t create instance in a memory until we create object of class. But if we declare any function or variable with static modifier, it directly create instance in a memory and acts globally. The static modifier doesn’t reference with any object.