Possible Duplicate:
What's the @ in front of a string for .NET?
I found this in a C# study book
DirectoryInfo dir = new DirectoryInfo(key.Key.ToString() + @":\");
The book however did not explain what the '@' symbol was for. I tried searching MSDN C# Operators,但此处未列出。我可以猜测,它允许开发人员不必转义'\'还是不允许没有转义序列?
这是做什么用的,为什么我要使用@":\"
而不是":\\"
?
谢谢您的帮助
编辑:看到类似的问题,在下面的评论