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

@ -55,13 +55,14 @@ namespace System
static String sHexLowerChars = "0123456789abcdef";
public void ToString(String outString, String format, IFormatProvider formatProvider)
{
if ((format != null) && (!format.IsEmpty))
if(format == null || format.IsEmpty)
{
((UInt64)this).ToString(outString, format, formatProvider);
return;
ToString(outString);
}
else
{
NumberFormatter.NumberToString(format, (int64)this, formatProvider, outString);
}
ToString(outString);
}
public override void ToString(String strBuffer)