class Program
{
static void Main(string[] args)
{
var nums = Enumerable.Range(0, 10);
var chars = "Hello world".ToCharArray();
var names = new string[] {"Pawel", "Magda", "Tomek" };
var result = nums.Select(n => n.ToString()).Concat(names).Concat(chars.Select(c => c.ToString()));
Array.ForEach(result.ToArray(), s => Console.Write(s + ", "));
Console.WriteLine();
}
}
ASKER
C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).
TRUSTED BY
ASKER
Open in new window
if someone can come up with a pure expression based solution, please share, there's no urgency this is a contrived example.