Linq Query:
Output:
//Take Example string[] strAlphabets = { "a","b","c","d","e","f"}; var strFirstFour = strAlphabets.Take(4); foreach (var t in strFirstFour) { Console.WriteLine(t.ToString()); }
Output:
It simply Take First 4 strings from strAlphabets .
a
b
c
d
0 comments:
Post a Comment