private Complex getitemcopy(int index) { Complex ret = new Complex(CorePINVOKE.ComplexStateType_getitemcopy(swigCPtr, index), true); if (CorePINVOKE.SWIGPendingException.Pending) { throw CorePINVOKE.SWIGPendingException.Retrieve(); } return(ret); }