public NonstandardSwaption(NonstandardSwap swap, Exercise exercise, Settlement.Type type, Settlement.Method settlementMethod) : this(NQuantLibcPINVOKE.new_NonstandardSwaption__SWIG_0(NonstandardSwap.getCPtr(swap), Exercise.getCPtr(exercise), (int)type, (int)settlementMethod), true) { if (NQuantLibcPINVOKE.SWIGPendingException.Pending) { throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve(); } }
public NonstandardSwaption(NonstandardSwap swap, Exercise exercise) : this(NQuantLibcPINVOKE.new_NonstandardSwaption__SWIG_2(NonstandardSwap.getCPtr(swap), Exercise.getCPtr(exercise)), true) { if (NQuantLibcPINVOKE.SWIGPendingException.Pending) { throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve(); } }
public NonstandardSwap underlyingSwap() { NonstandardSwap ret = new NonstandardSwap(NQuantLibcPINVOKE.NonstandardSwaption_underlyingSwap(swigCPtr), true); if (NQuantLibcPINVOKE.SWIGPendingException.Pending) { throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public NonstandardSwap underlyingSwap() { global::System.IntPtr cPtr = NQuantLibcPINVOKE.NonstandardSwaption_underlyingSwap(swigCPtr); NonstandardSwap ret = (cPtr == global::System.IntPtr.Zero) ? null : new NonstandardSwap(cPtr, true); if (NQuantLibcPINVOKE.SWIGPendingException.Pending) { throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NonstandardSwap obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }