In C#, both the following are equivalent representations of "c:\foo\bar":
string strPath = @"c:\foo\bar";
string strPath = "c:\\foo\\bar";
I believe the debugger displayed such strings the 2nd way in version 1.0 of
the framework, and people probably wondered where the extra slashes in the
string came from; so in version 1.1 they switched the display format to make
it plain that the string is to be taken literally. The fact that the @ is
outside the quotes tells you it's not part of the string.
--Bob
"br****@novell.com" <an*******@discussions.microsoft.com> wrote in message
news:CB**********************************@microsof t.com...
Ok, I figured out what the @ symbol means. Now, how do I remove it? I
have a string with the @ in front of it and I want to change it to a regular
string. I've read this string in with the ResourceManager from a .resx file
and I want to use it to format data, using \n as a new line. I can't figure
out how to remove the @ symbol.
I've tried copying it to another string. I've tried using the
String.Format("{0}", oldString), but it always keeps the @ symbol.