1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 00:50:25 +02:00

Hooked up NumberFormatter calls for all int type ToString methods

This commit is contained in:
Alan Stagner 2020-05-31 11:55:36 -07:00
parent f9ee4010cb
commit 0e873f535e
8 changed files with 48 additions and 124 deletions

View file

@ -41,12 +41,14 @@ namespace System
public void ToString(String outString, String format, IFormatProvider formatProvider)
{
if ((format != null) && (format.StartsWith("X")))
if(format == null || format.IsEmpty)
{
((uint64)this).ToString(outString, format, formatProvider);
return;
ToString(outString);
}
else
{
NumberFormatter.NumberToString(format, (uint32)this, formatProvider, outString);
}
((int64)this).ToString(outString, format, formatProvider);
}
}
}