Esempio n. 1
0
 /// <summary>
 /// Gets the physical thread this call chain is part of.
 /// </summary>
 public int GetThread(out CorDebugThread thread)
 => InvokeGetObject(_this, This[0]->GetThread, out thread);
 /// <summary>
 /// Sets the debug state of all managed threads in the process.
 /// </summary>
 /// <param name="state">
 /// A value of the that specifies the target state of the thread for debugging.
 /// </param>
 /// <param name="exceptThisThread">
 /// The thread that should be exempted from the debug state setting. If this value
 /// is <see langword="null" />, no thread is exempted.
 /// </param>
 /// <remarks>
 /// This method may affect threads that are not visible via <see cref="EnumerateThreads(out CorDebugEnum{CorDebugThread})" />,
 /// so threads that were suspended with this method will need to be resumed.
 /// </remarks>
 public int SetAllThreadsDebugState(CorDebugThreadState state, CorDebugThread exceptThisThread)
 {
     using var pExceptThisThread = exceptThisThread?.AcquirePointer();
     return(Calli(_this, This[0]->SetAllThreadsDebugState, (int)state, pExceptThisThread));
 }