How to join int[] to a character separated string in .NET?

后端 未结 11 816
广开言路
广开言路 2020-11-29 19:17

I have an array of integers:

int[] number = new int[] { 2,3,6,7 };

What is the easiest way of converting these into a single string where

11条回答
  •  [愿得一人]
    2020-11-29 19:54

    forget about .net 3.5 and use next code in .net core

    var result = string.Join(",", ints);
    

提交回复
热议问题