Example #1
0
 public TreeSwaptionEngine(ShortRateModelHandle model, uint timeSteps) : this(NQuantLibcPINVOKE.new_TreeSwaptionEngine__SWIG_5(ShortRateModelHandle.getCPtr(model), timeSteps), true)
 {
     if (NQuantLibcPINVOKE.SWIGPendingException.Pending)
     {
         throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public TreeSwaptionEngine(ShortRateModelHandle model, uint timeSteps) : this(NQuantLibcPINVOKE.new_TreeSwaptionEngine__SWIG_5(ShortRateModelHandle.getCPtr(model), timeSteps), true) {
   if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ShortRateModelHandle obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #4
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ShortRateModelHandle obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }