Exemplo n.º 1
0
 public VanillaSwingOption(Payoff payoff, SwingExercise ex, uint minExerciseRights, uint maxExerciseRights) : this(NQuantLibcPINVOKE.new_VanillaSwingOption(Payoff.getCPtr(payoff), SwingExercise.getCPtr(ex), minExerciseRights, maxExerciseRights), true)
 {
     if (NQuantLibcPINVOKE.SWIGPendingException.Pending)
     {
         throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SwingExercise obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }