c# 关键字能做变量?

来源:百度知道 编辑:UC知道 时间:2024/05/30 01:02:12
能不能举个例子 用if
作变量 ?

关键字不能做变量

肯定,偶作.net的

你们应该说下是c#的版本,直接不可以要用'@',比如

using System;
 
public class Test
{
public static void Main()
{
// your code goes here
int @string = 1024;
Console.WriteLine(@string);
}
}

 

不能