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(); } } }
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); } }
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); }