コード例 #1
0
        // ICorDebugCode

        public static unsafe byte[] GetCode(this ICorDebugCode corCode)
        {
            byte[] code = new byte[corCode.GetSize()];

            fixed(byte *pCode = code)
            corCode.GetCode(0, (uint)code.Length, (uint)code.Length, new IntPtr(pCode));

            return(code);
        }