字符串相关
- 用@符号放在字符串之前忽略字符串中转义字符。比如,
@"c:\temp"表示字符串"c:\temp"。
GoTo语句
*虽然goto语句不推荐使用,但是还是记一下。代码如下goto <标签>;,跳转到<标签>:处,比如下面代码会跳过执行Console.WriteLine("哈哈");:
static void Main(string[] args)
{
goto sbb;
Console.WriteLine("哈哈");
sbb:
Console.WriteLine("sb吧");
}