/// <summary> /// Frees the unmanaged library represented by this object /// </summary> public void Dispose() { InteropUtility.ClearPointer(ref _handle, NativeMethods.FreeLibrary); Name = null; }
/// <summary> /// Frees the unmanaged memory via <see cref="Marshal.FreeHGlobal"/> /// </summary> public virtual void Dispose() { InteropUtility.ClearPointer(ref _pointer, Marshal.FreeHGlobal); }