I need to create the exact same program as these but without using foreach. I need to use .find
and lambda expressions. I am trying to solve this problem for one week without any luck.
Action delljack = () =>
{
foreach (Gost x in list.listofguests)
{
if (x.name == "jack")
{
Console.WriteLine("There is jack in my list");
return;
}
}
};