Domanda di colloquio di Gigya

Write the prototype and implementation of the LINQ function: "Where".

Risposta di colloquio

Anonimo

17 apr 2017

static class Ext { public static IEnumerable MyWhere(this T[] array, Func func) { foreach(T t in array) { if (func(t)) yield return t; } } }

1