remove "@" from verbatim string?

  • Thread starter Thread starter ouch
  • Start date Start date
O

ouch

Hi Everyone,

Is there any way to remove the "@" from a verbatim string?
I've tried the .remove(int, int) method, but it doesn't work.

Thanks
ouch
 
I don't think I explained this one clearly...

Once you've defined a verbatim string, can you then make it
non-verbatim?
Is it possible and how would you do it?

Thanks
 
Hi Everyone,

Is there any way to remove the "@" from a verbatim string?
I've tried the .remove(int, int) method, but it doesn't work.

Thanks
ouch

I'm not sure what you mean. As I understand it, the @ is not part of the
string; it's part of a notation for expressing it. Thus @"a\b" is the same
string as "a\\b" and consists of the three character a, \, b.

Or do you have something else in mind?
 
Hi Michael,

Yes, I figured out (after a bit of fumbling) that "@" wasn't actually
part of the string but an identifier that precedes it.

My problem was that it seemed the resource manager's "GetString"
method returns a verbatim string, while what I actually wanted was a
non-verbatim string so I could include and recognise \n, \t, etc.

I've managed to solve it now though.
 
Back
Top