mirror of
https://github.com/godotengine/godot-monodevelop-addin.git
synced 2025-12-31 17:48:12 +03:00
16 lines
360 B
C#
16 lines
360 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
namespace GodotAddin.Utils
|
|
{
|
|
public static class ExtensionMethods
|
|
{
|
|
public static IEnumerable<string> EnumerateLines(this TextReader textReader)
|
|
{
|
|
string line;
|
|
while ((line = textReader.ReadLine()) != null)
|
|
yield return line;
|
|
}
|
|
}
|
|
}
|