Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

using statement c#

using (var reader = new StringReader(manyLines))
{
    string? item;
    do {
        item = reader.ReadLine();
        Console.WriteLine(item);
    } while(item != null);
}
 
PREVIOUS NEXT
Tagged: #statement
ADD COMMENT
Topic
Name
1+1 =