Russell Wyatt <ru****************************@ihs.com.au> wrote:
I have a vb class which returns a string to my C# app. I'm finding that if
escape characters are included in the string the C# string becomes a @
string and the escape chars are ignored.
Unfortunately I need the escape characters.
Anyone know of a way I can either avoid this behaviour or to convert the
@string back to a regular C# string?
I think you're getting a bit confused here - probably by the debugger.
"@strings" *are* regular C# strings. The debugger just shows the
strings in different ways to try to be helpful. Unfortunately it causes
a lot of confusion :(
To check what characters are *actually* in your string, do something
like:
foreach (char c in myString)
{
Console.WriteLine ((int)c);
}
and then have a look at what those characters are on
www.unicode.org.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too