Created
September 23, 2020 06:11
-
-
Save aershov24/2013453055efcb07ee31330ea187078b to your computer and use it in GitHub Desktop.
Markdium-60 .NET Interview Questions Devs Must Focus On (ANSWERED)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static IEnumerable Where(this IEnumerable items, Predicate< T> prodicate) | |
| { | |
| foreach(var item in items) | |
| { | |
| if (predicate(item)) | |
| { | |
| // for lazy/deffer execution plus avoid temp collection defined | |
| yield return item; | |
| } | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment