In C# what is the difference between:
public static class ClassName {}
And:
public class ClassName {}
public static class ClassName {}
A static class is just like a global variable: you can use it anywhere in your code without instantiating them. For example: ClassName. After the dot operator, you can use any property or function of it.
public class ClassName {}
But if you have non-static class then you need to create an instance of this class. For example:
ClassName classNameObject = new ClassName();