Cosmos/source/Cosmos.System2_Plugs/System/UInt64Impl.cs
2020-11-17 10:05:54 +01:00

33 lines
787 B
C#

using System;
using Cosmos.Common;
using Cosmos.Common.Extensions;
using IL2CPU.API;
using IL2CPU.API.Attribs;
namespace Cosmos.System_Plugs.System
{
[Plug(Target = typeof(UInt64))]
public class UInt64Impl
{
public static string ToString(ref ulong aThis)
{
return StringHelper.GetNumberString(aThis);
}
public static string ToString(ref ulong aThis, string formating)
{
if(formating == "X")
{
return ToHexString.ToHex(aThis, false);
}
else if(formating == "G")
{
return ToString(ref aThis);
}
else
{
throw new NotImplementedException();
}
}
}
}