@
-
Hi, What is the difference between the following two lines? string strTest = ""; string strTest = @""; Thanks
-
Hi, What is the difference between the following two lines? string strTest = ""; string strTest = @""; Thanks
Using the @ symbol allows you to do this string strTest = @"C:\Program Files\MyApp"; rather than string strTest = "C:**\\Program Files\\**MyApp";
-
Hi, What is the difference between the following two lines? string strTest = ""; string strTest = @""; Thanks
It also allows you to do this:
string s = @"Well, maybe it's
better if you pick up a book
on C#. You'll get quick answers
on the forum, but they won't
be complete. And, sometimes,
they'll have some ""sarcasm"".";
-
It also allows you to do this:
string s = @"Well, maybe it's
better if you pick up a book
on C#. You'll get quick answers
on the forum, but they won't
be complete. And, sometimes,
they'll have some ""sarcasm"".";