Finished Understanding Lambda Expression

This commit is contained in:
jason.zhu 2021-02-24 14:24:59 +11:00
parent 7756047de1
commit e0d20ef793

View File

@ -1,6 +1,7 @@
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
namespace Features namespace Features
{ {
@ -33,6 +34,11 @@ namespace Features
{ {
Console.WriteLine(); Console.WriteLine();
} }
foreach (var employee in developers.Where(x => x.Name.StartsWith("S")))
{
Console.WriteLine(employee.Name);
}
} }
} }
} }