Ejemplo n.º 1
0
 public void SetInt8Value(string columnName, sbyte?value)
 {
     NullableInt8 tempvalue = value.HasValue ? new NullableInt8(value.Value) : null;
     {
         CommonPINVOKE.DataRow_SetInt8Value__SWIG_1(swigCPtr, columnName, NullableInt8.getCPtr(tempvalue));
         if (CommonPINVOKE.SWIGPendingException.Pending)
         {
             throw CommonPINVOKE.SWIGPendingException.Retrieve();
         }
     }
 }
Ejemplo n.º 2
0
 public sbyte?ValueAsInt8(string columnName)
 {
     global::System.IntPtr cPtr = CommonPINVOKE.DataRow_ValueAsInt8__SWIG_1(swigCPtr, columnName);
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
     using (NullableInt8 tempValue = (cPtr == global::System.IntPtr.Zero) ? null : new NullableInt8(cPtr, false)) {
         if (tempValue?.HasValue() ?? false)
         {
             return(tempValue.GetValueOrDefault());
         }
         return(null);
     }
 }
Ejemplo n.º 3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NullableInt8 obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }