Connecting Tech Pros Worldwide Forums | Help | Site Map

What @ in front of a string in C# means?

Newbie
 
Join Date: Jul 2008
Posts: 14
#1: Jul 25 '08
I often see an '@' in strings like:

OurKey.CreateSubKey(@"OurSubKey\Subkey");


Can anyone tell me whats the purpose of that?

based on my observations when i removed the '@' the i have to add backslash to '\'

Hope someone can tell me.

Newbie
 
Join Date: Jul 2008
Posts: 14
#2: Jul 25 '08

re: What @ in front of a string in C# means?


oh here it is

http://msdn.microsoft.com/en-us/libr...fe(VS.71).aspx
Reply