mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
33 lines
787 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
}
|