Posts tagged "Symbol"

3 uses of the @ Symbol in c#

(adsbygoogle = window.adsbygoogle || []).push({}); 1. You can use one of the reserved words of c# with the @ symbol Eg : string @int = “senthil kumar”; or something like this string @class =”MCA”; Although you can use this , avoid using one. 2. Before a string specially when using the file paths . You can use string filepath = @”D:\SENTHIL-DATA\myprofile.txt”; instead of string filepath = “D:\\SENTHIL-DATA\\myprofile.txt”; 3. For a Multi lined text string ThreeIdiots = @”Senthil Kumar, Norton Stanley, and Pavan Rao!”; MessageBox.Show(ThreeIdiots); read more


9 comments - What do you think?
Posted by Ginktage - January 24, 2011 at 9:34 pm

Categories: .NET, C#, Visual Studio, Windows Application, Windows Phone   Tags: , , ,