Selasa, 25 Januari 2011

3 uses of the @ Symbol in c#

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

Tidak ada komentar:

Posting Komentar