Added a new helper method - a temporary fix

(cherry picked from commit d83e579dfe)
This commit is contained in:
Pavel Penev
2023-09-27 11:09:34 +03:00
parent 24623eaa65
commit 386f691c2e

View File

@@ -562,6 +562,11 @@ namespace OpenRA
{
return new LineSplitEnumerator(str.AsSpan(), separator);
}
public static bool TryParseInt32Invariant(string s, out int i)
{
return int.TryParse(s, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out i);
}
}
public ref struct LineSplitEnumerator