G Guest Feb 2, 2007 #1 hey all, what does the @ symbol in front of a string mean? @"mystringvalue" thanks, rodchar
P PokerMan Feb 2, 2007 #2 means to read characters such as '\' correctly So if you had a path and you dont want the string read as an escape sequence you put the @ in front.
means to read characters such as '\' correctly So if you had a path and you dont want the string read as an escape sequence you put the @ in front.
D DeveloperX Feb 2, 2007 #3 hey all, what does the @ symbol in front of a string mean? @"mystringvalue" thanks, rodchar Click to expand... It means take everything after it as the string, so Console.WriteLine("W\tW"); Console.WriteLine(@"W\tW"); In the first case will write W tab W and in the second will write W\tW where tab is an actual tab.
hey all, what does the @ symbol in front of a string mean? @"mystringvalue" thanks, rodchar Click to expand... It means take everything after it as the string, so Console.WriteLine("W\tW"); Console.WriteLine(@"W\tW"); In the first case will write W tab W and in the second will write W\tW where tab is an actual tab.
M Mark Rae Feb 2, 2007 #4 what does the @ symbol in front of a string mean? @"mystringvalue" Click to expand... It means a string literal e.g. string strFolder = "C:\\My Documents"; and string strFolder = @"C:\My Documents"; will both evaluate to the same string variable... http://www.google.co.uk/search?sour...GLG:2006-28,GGLG:en&q="C#"+"string+literal"+@
what does the @ symbol in front of a string mean? @"mystringvalue" Click to expand... It means a string literal e.g. string strFolder = "C:\\My Documents"; and string strFolder = @"C:\My Documents"; will both evaluate to the same string variable... http://www.google.co.uk/search?sour...GLG:2006-28,GGLG:en&q="C#"+"string+literal"+@