为什么这段代码可以编译(url 不是关键字)?
why this code compiles (url is not a keyword)?
我有这个代码:
static void Main(string[] args)
{
Console.WriteLine("iexplore");
http://www.google.com;
Console.WriteLine("maximize");
Console.ReadLine();
}
我不清楚为什么这段代码可以编译?因为我那里有一个 url 而它不是 c# 关键字...
在 C# 中做
someText:
为 goto
制作标签,之后
//Some other text
是评论所以
http://www.google.com;
是标签http:
后面是注释//www.google.com;
我有这个代码:
static void Main(string[] args)
{
Console.WriteLine("iexplore");
http://www.google.com;
Console.WriteLine("maximize");
Console.ReadLine();
}
我不清楚为什么这段代码可以编译?因为我那里有一个 url 而它不是 c# 关键字...
在 C# 中做
someText:
为 goto
制作标签,之后
//Some other text
是评论所以
http://www.google.com;
是标签http:
后面是注释//www.google.com;