Question d’entretien chez Gigya

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

Réponse à la question d'entretien

Utilisateur anonyme

17 avr. 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