using System; using System.Collections.Generic; using System.Linq; using System.Text; using Indy.IL2CPU.Plugs; namespace Indy.IL2CPU.IL.CustomImplementations.System { [Plug(Target=typeof(ushort))] public static class UInt16Impl { public static string ToString(ushort aThis) { string xDigits = "0123456789ABCDEF"; char[] xResult = new char[6]; xResult[0] = '0'; xResult[1] = 'x'; xResult[2] = xDigits[aThis >> 12]; xResult[3] = xDigits[aThis >> 8]; xResult[4] = xDigits[aThis >> 4]; xResult[5] = xDigits[aThis & 0xF]; return new String(xResult); } } }