Simple Lambda Expression Example for beginner

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 1146
class Amatya
{
static void Main()
{
List<int> val = new List<int>() { 4, 10, 25, 50};

int oddVal = val.FindIndex(x => x % 2!= 0);
Console.WriteLine(oddVal)
}

}

Hope it will help for beginner
Thanks

Comments or Responses

Login to post response