/// <summary> /// Returns true if the object is associated with currently opened file. /// </summary> /// <returns></returns> public virtual bool IsOpened() { ThrowIfDisposed(); var res = NativeMethods.core_FileStorage_isOpened(ptr) != 0; GC.KeepAlive(this); return(res); }
/// <summary> /// Returns true if the object is associated with currently opened file. /// </summary> /// <returns></returns> public virtual bool IsOpened() { ThrowIfDisposed(); NativeMethods.HandleException( NativeMethods.core_FileStorage_isOpened(ptr, out var ret)); GC.KeepAlive(this); return(ret != 0); }
/// <summary> /// Returns true if the object is associated with currently opened file. /// </summary> /// <returns></returns> public virtual bool IsOpened() { if (disposed) { throw new ObjectDisposedException("FileStorage"); } return(NativeMethods.core_FileStorage_isOpened(ptr) != 0); }
/// <summary> /// Returns true if the object is associated with currently opened file. /// </summary> /// <returns></returns> public virtual bool IsOpened() { ThrowIfDisposed(); return(NativeMethods.core_FileStorage_isOpened(ptr) != 0); }