public void SetString(string str) { MyDLLPINVOKE.CppClass_SetString(swigCPtr, str); if (MyDLLPINVOKE.SWIGPendingException.Pending) { throw MyDLLPINVOKE.SWIGPendingException.Retrieve(); } }