1. You can use one of the reserved words of c# with the @ symbolEg :string @int = "senthil kumar";
or something like thisstring @class ="MCA";Although you can use this , avoid using one. 2. Before a string specially when using the file paths .You can usestring filepath = @"D:\SENTHIL-DATA\myprofile.txt";instead ofstring filepath = "D:\\SENTHIL-DATA\\myprofile.txt"; 3. For a Multi lined textstring ThreeIdiots = @"Senthil Kumar,
or something like thisstring @class ="MCA";Although you can use this , avoid using one. 2. Before a string specially when using the file paths .You can usestring filepath = @"D:\SENTHIL-DATA\myprofile.txt";instead ofstring filepath = "D:\\SENTHIL-DATA\\myprofile.txt"; 3. For a Multi lined textstring ThreeIdiots = @"Senthil Kumar,
Norton Stanley,MessageBox.Show(ThreeIdiots);Read more: Ginktage
and Pavan Rao!";
0 comments:
Post a Comment