private void DisposeNativeRow() { UnsafeNativeMethods.IRow irow = _irow; _irow = null; if (null != irow) { Marshal.ReleaseComObject(irow); } }
internal void InitializeIRow(object result, IntPtr recordsAffected) { Initialize(); Debug.Assert(_singleRow, "SingleRow not already set"); _singleRow = true; _recordsAffected = recordsAffected; _irow = (UnsafeNativeMethods.IRow) result; // maybe null if no results _hasRows = (null != _irow); }