DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Last Using LINQ In C#.net
// description of your code here
int[] val1= { 1, 2, 3, 4, 5, 6 };
int myLast= val1.Last();
int odd= val1.myLast(x => x% 2 != 0);
Console.WriteLine(myLast);
Console.WriteLine(odd);




