Skip to content

Commit 386f691

Browse files
committed
Added a new helper method - a temporary fix
(cherry picked from commit d83e579)
1 parent 24623ea commit 386f691

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

OpenRA.Game/Exts.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,11 @@ public static LineSplitEnumerator SplitLines(this string str, char separator)
562562
{
563563
return new LineSplitEnumerator(str.AsSpan(), separator);
564564
}
565+
566+
public static bool TryParseInt32Invariant(string s, out int i)
567+
{
568+
return int.TryParse(s, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out i);
569+
}
565570
}
566571

567572
public ref struct LineSplitEnumerator

0 commit comments

Comments
 (0)