Nối dữ liệu trong mảng Join array [return]
Join array C# 2016
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { //Write array from Method Console.WriteLine(string.Join("-", Method())); Console.ReadLine(); } static string[] Method() { string[] array = new string[2]; array[0] = "Thank"; array[1] = "To"; return array; } } }
Output: Thank-To
0 nhận xét:
Post a Comment