public void SetSingleValue(string columnName, float?value) { NullableFloat32 tempvalue = value.HasValue ? new NullableFloat32(value.Value) : null; { CommonPINVOKE.DataRow_SetSingleValue__SWIG_1(swigCPtr, columnName, NullableFloat32.getCPtr(tempvalue)); if (CommonPINVOKE.SWIGPendingException.Pending) { throw CommonPINVOKE.SWIGPendingException.Retrieve(); } } }
public float?ValueAsSingle(string columnName) { global::System.IntPtr cPtr = CommonPINVOKE.DataRow_ValueAsSingle__SWIG_1(swigCPtr, columnName); if (CommonPINVOKE.SWIGPendingException.Pending) { throw CommonPINVOKE.SWIGPendingException.Retrieve(); } using (NullableFloat32 tempValue = (cPtr == global::System.IntPtr.Zero) ? null : new NullableFloat32(cPtr, false)) { if (tempValue?.HasValue() ?? false) { return(tempValue.GetValueOrDefault()); } return(null); } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NullableFloat32 obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }