Beispiel #1
0
 public void SetUInt8Value(string columnName, byte?value)
 {
     NullableUInt8 tempvalue = value.HasValue ? new NullableUInt8(value.Value) : null;
     {
         CommonPINVOKE.DataRow_SetUInt8Value__SWIG_1(swigCPtr, columnName, NullableUInt8.getCPtr(tempvalue));
         if (CommonPINVOKE.SWIGPendingException.Pending)
         {
             throw CommonPINVOKE.SWIGPendingException.Retrieve();
         }
     }
 }
Beispiel #2
0
 public byte?ValueAsUInt8(string columnName)
 {
     global::System.IntPtr cPtr = CommonPINVOKE.DataRow_ValueAsUInt8__SWIG_1(swigCPtr, columnName);
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
     using (NullableUInt8 tempValue = (cPtr == global::System.IntPtr.Zero) ? null : new NullableUInt8(cPtr, false)) {
         if (tempValue?.HasValue() ?? false)
         {
             return(tempValue.GetValueOrDefault());
         }
         return(null);
     }
 }
Beispiel #3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NullableUInt8 obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }