Linq Query:
Output:
//Concat
            string[] str1 = { "a", "b", "c"};
            string[] str2 = { "d", "e", "f" };
           var allstr = str1.Concat(str2);
           foreach (var t in allstr)
           {
               Console.WriteLine(t);
           }
//
Output:
a
b
c
d
e
f
0 comments:
Post a Comment