1.全局变量
全局变量定义在函数外,用static修饰
class Program
{
static string myString;
static void Main(string[] args)
{
}
}
|
【c#】变量的作用域
最新推荐文章于 2024-12-24 14:13:36 发布