Answers for "infinit range loop c#"

C#
0

infinit range loop c#

public IEnumerable<int> InfiniteCounter()
{
    int counter = 0;
    while (true)
    {
        unchecked
        {
            yield return counter;
            counter++;
        }
    }
}
Posted by: Guest on January-07-2021

C# Answers by Framework

Browse Popular Code Answers by Language