public void ExitThread(System.IntPtr pAppDomain, System.IntPtr pThread) { Call(delegate { callbackSwitch.ExitThread( MTA2STA.MarshalIntPtrTo <ICorDebugAppDomain>(pAppDomain), MTA2STA.MarshalIntPtrTo <ICorDebugThread>(pThread) ); }); }