Answers for "c# loop array one line"

C#
1

c# how to write an array in a single line

// How to display an array on the same line:
string[] names = {"name1", "name2", "name3"}
Console.WriteLine("{0}", string.Join(", ", names));
Posted by: Guest on October-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language