コード例 #1
0
        private void DisposeNativeRow() {
            UnsafeNativeMethods.IRow irow = _irow;
            _irow = null;

            if (null != irow) {
                Marshal.ReleaseComObject(irow);
            }
        }
コード例 #2
0
 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);
 }