[code-watcher] init module.

This commit is contained in:
West14
2022-04-20 00:38:47 +03:00
parent 166363cd50
commit b58fe8b6e9
7 changed files with 128 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
namespace West.TelegramBot.CodeWatcher;
public static class StringExtension
{
// https://stackoverflow.com/a/23408020
public static IEnumerable<string> SplitToLines(this string input)
{
using (var reader = new StringReader(input))
{
string line;
while ((line = reader.ReadLine()) != null)
{
yield return line;
}
}
}
}