luni, 25 august 2014

Verbatim String Literals (C#)

string path = "C:\\Programs\\MyProgram\\My.exe";
 
You can use the verbatim string literal character (@) to build the string exactly as it appears within the double quotation marks.

string path = @"C:\Programs\MyProgram\My.exe";

Niciun comentariu:

Trimiteți un comentariu