Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

linq while loop in c#

static IEnumerable<string> ReadAllLines()
{
    string line;
    while ((line = Console.ReadLine()) != string.Empty)
        yield return line;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linq #loop
ADD COMMENT
Topic
Name
8+1 =