To call a static property on an instance of a class in C#, you should use the class name instead of the instance name. Here is an example:
main.cs475 chars16 lines
Note that static properties are associated with the class itself, rather than with any specific instance of the class. Therefore, they can be accessed using the class name without creating an instance of the class.
gistlibby LogSnag