using System;
using System.Collections.Generic;
using System.Text;namespace ConsoleApplication1
{
class @class
{
public static void @static(bool @bool)
{
if (@bool)
System.Console.WriteLine("true");
else
System.Console.WriteLine("false");
}
} class Program
{
static void Main(string[] args)
{
cl\u0061ss.st\u0061tic(true); }
}
}请问下,为什么红字标识的地方可以对等于 @class.@static(true);
using System.Collections.Generic;
using System.Text;namespace ConsoleApplication1
{
class @class
{
public static void @static(bool @bool)
{
if (@bool)
System.Console.WriteLine("true");
else
System.Console.WriteLine("false");
}
} class Program
{
static void Main(string[] args)
{
cl\u0061ss.st\u0061tic(true); }
}
}请问下,为什么红字标识的地方可以对等于 @class.@static(true);
VS是支持unicode字符的,你会发现用中文作为变量名也是可行的,呵呵