Добавьте файлы проекта.

This commit is contained in:
2025-12-07 08:52:05 +03:00
parent 95344cd7a7
commit 226b6b6b21
118 changed files with 5249 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using System.Text;
namespace SQLLinter.Infrastructure.Parser
{
public static class ParsingUtility
{
public static TextReader CreateTextReaderFromString(string str)
{
var bytes = Encoding.UTF8.GetBytes(str);
return new StreamReader(new MemoryStream(bytes));
}
public static Stream GenerateStreamFromString(string s)
{
var stream = new MemoryStream();
var writer = new StreamWriter(stream);
writer.Write(s);
writer.Flush();
stream.Position = 0;
return stream;
}
}
}