private static ILibraryLoader GetLibraryLoader(RuntimeOS os) { switch (os) { case RuntimeOS.Windows: return(new WindowsLibraryLoader()); case RuntimeOS.Mac: return(new UnixLibraryLoader(true)); case RuntimeOS.Linux: return(new UnixLibraryLoader(false)); default: throw new ArgumentOutOfRangeException("os"); } }
public static bool IsCurrentOSCompatibleWith(RuntimeOS os) { return _currentOSCompatibleWith.Contains(os); }
internal static bool IsCurrentOSCompatibleWith(RuntimeOS os) { return currentOSCompatibleWith.ContainsKey(os); }
public static bool IsCurrentOSCompatibleWith(RuntimeOS os) { return(_currentOSCompatibleWith.ContainsKey(os)); }
internal static bool IsCurrentOSCompatibleWith(RuntimeOS os) { return(currentOSCompatibleWith.ContainsKey(os)); }