@ "C:Test" cancels escape

xiaoxiao2021-03-06  41

Cancel

For example, you want to assign C: / Windows / System this string to STR

Under normal circumstances: string str = "c: // windows // system";

Because in C #, // will only be escapped into one /, for example, / N is a newline character

Join @, you can do this:

String str = @ "c: / windows / system";

转载请注明原文地址:https://www.9cbs.com/read-57044.html

New Post(0)