Added a new helper method - a temporary fix

(cherry picked from commit d83e579dfe)
This commit is contained in:
Pavel Penev
2025-11-02 02:57:04 +00:00
committed by hacker
parent ee4403f923
commit 0bbe6e58f6

View File

@@ -637,6 +637,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