private void setitem(int index, Complex val) { CorePINVOKE.ComplexStateType_setitem(swigCPtr, index, Complex.getCPtr(val)); if (CorePINVOKE.SWIGPendingException.Pending) { throw CorePINVOKE.SWIGPendingException.Retrieve(); } }