Most efficient way to concatenate strings?

后端 未结 17 1281
野趣味
野趣味 2020-11-22 03:04

What\'s the most efficient way to concatenate strings?

17条回答
  •  抹茶落季
    2020-11-22 03:37

    Following may be one more alternate solution to concatenate multiple strings.

    String str1 = "sometext";
    string str2 = "some other text";
    
    string afterConcate = $"{str1}{str2}";
    

    string interpolation

提交回复
热议问题