public static extern bool FreeLibrary(IntPtr hModule);
public void Dispose() { if (_dllHandle != IntPtr.Zero) { if (_enabled) { StopPlugin(); } NativeProxy.FreeLibrary(_dllHandle); _dllHandle = IntPtr.Zero; } }