[C#] ポインター実践例② — P/Invoke を使った C++ DLL との相互運用 Jun 12, 2026 bucket-sort C++ DLL の関数を P/Invoke で呼び出す方法を、unsafe ポインター方式と IntPtr/Marshal 方式の両面から解説します。