- static void Main(string[] args)
- {
- //想把这个字符串数组中3个字符串连接起来,如何做?
- //string[] time = new time[] { "abc", "dea", "fgh" };
- string[] time = new string[] { "abc", "dea", "fgh" };
- string str = "";
- foreach (var item in time)
- {
- str += item;
- }
- Console.WriteLine(str);
- Console.ReadKey();
- }
复制代码 |