Global variables in Visual C#

前端 未结 4 602
花落未央
花落未央 2021-01-21 03:15

How do I declare global variables in Visual C#?

4条回答
  •  情深已故
    2021-01-21 03:48

    The nearest you can do this in C# is to declare a public variable in a public static class. But even then, you have to ensure the namespace is imported, and you specify the class name when using it.

提交回复
热议问题