public SWIGTYPE_p_CommodityCurveExt __deref__() { global::System.IntPtr cPtr = NQuantLibcPINVOKE.CommodityCurveExt___deref__(swigCPtr); SWIGTYPE_p_CommodityCurveExt ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_CommodityCurveExt(cPtr, false); if (NQuantLibcPINVOKE.SWIGPendingException.Pending) { throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CommodityCurveExt obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }