Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Collections
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { MyCleverEnumerable cleverEnumerable = new MyCleverEnumerable(); Console.WriteLine("Yield test:"); foreach(int cleveri in cleverEnumerable.getItems()){ Console.WriteLine(cleveri); } } public class MyCleverEnumerable { public System.Collections.Generic.IEnumerable<int> getItems() { yield return 2; yield return 199; Console.WriteLine("Yield side-effect"); yield return 134; yield break; } } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
neja]\
countvowels
Eliminate duplicates char in string either upper or lower case
CancellationToken Struct dot net
Bubble sort
30272 Program Ex6_1 else_if
RightSideView Tree
Converting a string to byte-array without using an encoding (byte-by-byte)
function in event
SunLocation
Please log in to post a comment.