Back slash in C#http://forums.asp.net/t/869863.aspx/1?Back+slash+in+C+Tue, 29 Mar 2005 04:00:25 -0500869863869948http://forums.asp.net/p/869863/869948.aspx/1?Back+slash+in+C+Back slash in C# <span class="normalTextSmall"><span id="Createeditpost1_PostForm_PreviewBody">To quote back slash &quot;\&quot; in C#,&nbsp;&nbsp;is it &quot;\\&quot; or something else?&nbsp;This is for&nbsp;searching a back slash in a string. <br> Thanks.</span> </span> 2005-03-26T05:26:50-05:00870020http://forums.asp.net/p/869863/870020.aspx/1?Re+Back+slash+in+C+Re: Back slash in C# It is indeed &quot;\\&quot;<br> 2005-03-26T09:21:13-05:00870136http://forums.asp.net/p/869863/870136.aspx/1?Re+Back+slash+in+C+Re: Back slash in C# <p>Hi,</p> <p>take a look at the specifications: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_2_4_4_5.asp"> String literals</a>.</p> <p>The \ works like an escaping character.</p> <p>Grz, Kris.</p> 2005-03-26T13:19:25-05:00872726http://forums.asp.net/p/869863/872726.aspx/1?Re+Back+slash+in+C+Re: Back slash in C# or you can use the '@' character...<br> <br> example:<br> <br> string a = @&quot;C:\Windows\tmp&quot;;<br> 2005-03-29T04:00:25-05:00