Beispiel #1
0
 protected static IEnumerable <Adapter> FindAdaptersApplicableFor(Adapter adapter, IEnumerable <Adapter> adapters) =>
 adapters.Where(a => a.Jolt > adapter.Jolt && a.Jolt <= adapter.Jolt + 3);
Beispiel #2
0
 private static Adapter FindAdapterApplicableFor(Adapter adapter, IEnumerable <Adapter> adapters) =>
 adapters.Where(a => a.Jolt <= adapter.Jolt + 3)
 .Min();