private static void ShowMethod(IntPtr mt) { XTrace.WriteLine("ShowMethod: {0}", mt.ToString("x")); var buf = new Byte[8]; Marshal.Copy(mt, buf, 0, buf.Length); //XTrace.WriteLine(buf.ToHex("-")); var ip = new IntPtr((Int64)buf.ToUInt64()); XTrace.WriteLine("{0}", ip.ToString("x")); if (ip.ToInt64() <= 0x1000000 || ip.ToInt64() > 0x800000000000L) return; buf = new Byte[32]; Marshal.Copy(ip, buf, 0, buf.Length); XTrace.WriteLine(buf.ToHex("-")); }