c# - Backslashes not working properly in my web service -
i have simple line of code in web service:
instance = @"\instancenamehere"; yet output same.
\\instancenamehere if remove @ , use 2 slashes, same result. i've never seen before , google-fu has failed me. wrote simple app , result correct. why acting in web service?
it's escaping slash in debugger know it's slash , not escape sequence \t. if debugger did not this, how distinguish string
\t from string
<tab> in debugger since latter represented in escape sequence \t? therefor former shown as
\\t and latter as
\t write stream or console , you'll see has 1 slash, or instance.length , compare count of characters. you'll see 17 on console, whereas \\instancenamehere has eighteen characters.
Comments
Post a Comment