linq - How to concatenate two sequences

Linq Concat Operator - How to concatenate two sequences into one sequence
LinqConcatOperator.aspx

<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="System.Linq" %>

<!DOCTYPE html>
<script runat="server">
    protected void Button1_Click(object sender, System.EventArgs e)
    {
        string[] fruitsStartsWithA = { "Actinidia deliciosa", "Albero del pane", "Annona muricata" };
        string[] fruitsStartsWithB = { "Brazilian pawpaw", "Bramble fruit" };

        var allFruits = fruitsStartsWithA.Concat(fruitsStartsWithB);

        Label1.Text = "Fruits Starts With 'A' List:....... <br />";
        foreach (string names in fruitsStartsWithA)
        {
            Label1.Text += names.ToString() + "<br />";
        }

        Label1.Text += "<br />Fruits Starts With 'B' List:....... <br />";
        foreach (string names in fruitsStartsWithB)
        {
            Label1.Text += names.ToString() + "<br />";
        }

        Label2.Text = "All Fruits After Calling Concat Operator:....... <br />";
        foreach (string names in allFruits)
        {
            Label2.Text += names.ToString() + "<br />";
        }
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Linq Concat Operator - How to concatenate two sequences into one sequence</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:DarkBlue; font-style:italic;">
            Linq Standard Query Operator - Concat
            <br />How to concatenate two sequences into one sequence
        </h2>
        <hr width="525" align="left" color="CornFlowerBlue" />
        <asp:Label
             ID="Label1"
             runat="server"
             Font-Size="X-Large"
             ForeColor="SeaGreen"
             Font-Italic="true"
             >
        </asp:Label>
        <br />
        <asp:Label
             ID="Label2"
             runat="server"
             Font-Size="X-Large"
             ForeColor="DarkMagenta"
             Font-Italic="true"
             >
        </asp:Label>
        <br />
        <asp:Button 
            ID="Button1"
            runat="server"
            OnClick="Button1_Click"
            Text="Test Linq Query Operator - Concat"
            Height="45"
            Font-Bold="true"
            ForeColor="DodgerBlue"
            />
    </div>
    </form>
</body>
</html>
More c# linq examples