Created
September 23, 2020 06:14
-
-
Save aershov24/68659e4805c77a4bb0bf223a91688120 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