Upgrade to .NET 8 and code cleanup

This commit is contained in:
Stone_Red
2024-08-07 19:48:03 +02:00
parent 84afe70c96
commit 7078ed5637
33 changed files with 960 additions and 1008 deletions
@@ -7,7 +7,7 @@ using System.Text;
namespace YesNt.Interpreter.Utilities;
public static class StringExtentions
public static class StringExtensions
{
private static readonly Dictionary<string, string> reverseReplacementRules;
@@ -24,7 +24,7 @@ public static class StringExtentions
};
[SuppressMessage("Minor Code Smell", "S3963:\"static\" fields should be initialized inline", Justification = "Doesn't work because it throws a TypeInitializationException")]
static StringExtentions()
static StringExtensions()
{
reverseReplacementRules = ReplacementRules.ToDictionary(x => x.Value, x => x.Key);
}