Example #1
0
 public void SetDoubleValue(string columnName, double?value)
 {
     NullableFloat64 tempvalue = value.HasValue ? new NullableFloat64(value.Value) : null;
     {
         CommonPINVOKE.DataRow_SetDoubleValue__SWIG_1(swigCPtr, columnName, NullableFloat64.getCPtr(tempvalue));
         if (CommonPINVOKE.SWIGPendingException.Pending)
         {
             throw CommonPINVOKE.SWIGPendingException.Retrieve();
         }
     }
 }
Example #2
0
 public double?ValueAsDouble(string columnName)
 {
     global::System.IntPtr cPtr = CommonPINVOKE.DataRow_ValueAsDouble__SWIG_1(swigCPtr, columnName);
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
     using (NullableFloat64 tempValue = (cPtr == global::System.IntPtr.Zero) ? null : new NullableFloat64(cPtr, false)) {
         if (tempValue?.HasValue() ?? false)
         {
             return(tempValue.GetValueOrDefault());
         }
         return(null);
     }
 }
Example #3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NullableFloat64 obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }