Answers for "for each line in string c#"

C#
-1

for each line in string c#

using (var reader = new StringReader(multiLineString))
{
    for (string line = reader.ReadLine(); line != null; line = reader.ReadLine())
    {
        // Do something with the line
    }
}
Posted by: Guest on March-06-2020

C# Answers by Framework

Browse Popular Code Answers by Language