Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
WhereEnumerator
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { List<int> ints = new List<int> { 5,2,1,4,6}; var result = ints.WhereEnumerator(i => i > 3); foreach(var r in result) { Console.WriteLine(r); } } } public static class MyExtensions { public static IEnumerable<T> WhereEnumerator<T>(this IEnumerable<T> source, Predicate<T> predicate) { foreach(T s in source) { if (predicate(s)) { yield return s; } } } } }
run
|
edit
|
history
|
help
0
ok
Linked List
gfhfgsdfsfdsdghgfddfg
Planet-D ver. 0.5
Non-User input - Random Controlled - Guessing Game
C# Dictionary with Enum Keys And Values
c# yamuk çizgi
Math Main
ERFDAX
Least Common Multiple of 2 or more numbers.