相关疑难解决方法(0)

C#是否优化了字符串文字的串联?

例如,编译器是否知道要翻译

string s = "test " + "this " + "function";
Run Code Online (Sandbox Code Playgroud)

string s = "test this function";
Run Code Online (Sandbox Code Playgroud)

从而避免字符串连接的性能损失?

.net c# optimization performance

46
推荐指数
5
解决办法
5800
查看次数

标签 统计

.net ×1

c# ×1

optimization ×1

performance ×1