public short?ValueAsInt16(string columnName) { global::System.IntPtr cPtr = CommonPINVOKE.DataRow_ValueAsInt16__SWIG_1(swigCPtr, columnName); if (CommonPINVOKE.SWIGPendingException.Pending) { throw CommonPINVOKE.SWIGPendingException.Retrieve(); } using (NullableInt16 tempValue = (cPtr == global::System.IntPtr.Zero) ? null : new NullableInt16(cPtr, false)) { if (tempValue?.HasValue() ?? false) { return(tempValue.GetValueOrDefault()); } return(null); } }