Verbatim string literals v escape sequences

后端 未结 3 2056
半阙折子戏
半阙折子戏 2020-12-01 23:59

Is there any difference in how the C# compiler or .NET run-time handles verbatim string literals versus using escape sequences (i.e. performance) or is it just a matter of d

3条回答
  •  死守一世寂寞
    2020-12-02 00:50

    They are exactly the same. Try to decompile the two versions with a decompiler.

    It's only a matter of convenience for developers when writing it in the code.

提交回复
热议问题