Answers for "linq while loop in c#"

C#
0

linq while loop in c#

static IEnumerable<string> ReadAllLines()
{
    string line;
    while ((line = Console.ReadLine()) != string.Empty)
        yield return line;
}
Posted by: Guest on July-11-2021

C# Answers by Framework

Browse Popular Code Answers by Language