new shorthand Exts.(Try)ParseIntegerInvariant

This commit is contained in:
Matthias Mailänder
2014-05-09 08:47:05 +02:00
parent bd55ffc10d
commit 59ace5d01b
21 changed files with 117 additions and 123 deletions

View File

@@ -9,7 +9,6 @@
#endregion
using System;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net.Sockets;
@@ -281,7 +280,7 @@ namespace OpenRA.Irc
OnLineRead(l);
int numeric;
if (int.TryParse(l.Command, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out numeric))
if (Exts.TryParseIntegerInvariant(l.Command, out numeric))
{
var nl = new NumericLine(l, numeric);
LocalUser.OnNumeric(nl);