internal static int dlclose( [In] IntPtr handle) { if (_osUnixPlatform == OSUnixPlatform.Linux) { return(LinuxNativeMethods.dlclose(handle)); } else if (_osUnixPlatform == OSUnixPlatform.OSX) { return(OSXNativeMethods.dlclose(handle)); } else { throw new NotImplementedException(); } }