Concat Prototype : Concat « LINQ « C# / CSharp Tutorial






using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
    public static void Main() {
        string[] presidents = {"ant", "arding", "arrison", "eyes", "over", "ackson"};
        IEnumerable<string> items = presidents.Take(5).Concat(presidents.Skip(5));

        foreach (string item in items)
            Console.WriteLine(item);
    }
}








22.27.Concat
22.27.1.Using Concat with array elements
22.27.2.Using Concat to merge two integer arrays into a single sequence
22.27.3.Using Concat to merge the names of all customers and products
22.27.4.Concat Prototype
22.27.5.Concatention by Using the Concat Operator
22.27.6.Concat appends one sequence to another
22.27.7.Concatenate one array to another