📜  对于字符串中的每一行 c# 代码示例

📅  最后修改于: 2022-03-11 14:48:43.489000             🧑  作者: Mango

代码示例1
using (var reader = new StringReader(multiLineString))
{
    for (string line = reader.ReadLine(); line != null; line = reader.ReadLine())
    {
        // Do something with the line
    }
}