Finished Understanding Lambda Expression

2_linq_and_csharp
jason.zhu 2021-02-24 14:24:59 +11:00
parent 7756047de1
commit e0d20ef793
1 changed files with 6 additions and 0 deletions

View File

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