Simple Program for understanding Predicate

Amatya
Posted by Amatya under LINQ category on | Points: 40 | Views : 1600
class Amatya
{
static void Main()
{
Predicate<int> pre = val => val == 100;
Console.WriteLine(pre.Invoke(50));
Console.WriteLine(pre.Invoke(100));
}
}


The Result will be
False
True

Thanks.

Comments or Responses

Login to post response