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