Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 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();
     }
 }
Exemplo n.º 3
0
        public NonstandardSwap underlyingSwap()
        {
            NonstandardSwap ret = new NonstandardSwap(NQuantLibcPINVOKE.NonstandardSwaption_underlyingSwap(swigCPtr), true);

            if (NQuantLibcPINVOKE.SWIGPendingException.Pending)
            {
                throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 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);
 }