예제 #1
0
        /// <summary>
        /// Gets information about the managed code at a particular code address.
        /// </summary>
        /// <param name="codeAddress">
        /// [in] A CORDB_ADDRESS value that specifies the starting address of the managed code segment.
        /// </param>
        /// <param name="ppCode">
        /// [out] A pointer to the address of an "ICorDebugCode" object that represents a segment of managed code.
        /// </param>
        /// <remarks>
        /// NOTE:
        ///
        /// This method is available with .NET Native only.
        /// </remarks>
        public int GetCode(long codeAddress, out CorDebugCode code)
        {
            void **pCode   = default;
            int    hResult = Calli(_this, This[0]->GetCode, codeAddress, &pCode);

            ComFactory.Create(pCode, hResult, out code);
            return(hResult);
        }
예제 #2
0
 /// <summary>
 /// Gets the <c>ICorDebugCode</c> instance that contains this
 /// <c>ICorDebugVariableHome</c> object.
 /// </summary>
 /// <param name="code">
 /// A pointer to the address of the <c>ICorDebugCode</c> instance that
 /// contains this <c>ICorDebugVariableHome</c> object.
 /// </param>
 public int GetCode(out CorDebugCode code)
 => InvokeGetObject(_this, This[0]->GetCode, out code);