Ejemplo n.º 1
0
        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");
            }
        }
Ejemplo n.º 2
0
 public static bool IsCurrentOSCompatibleWith(RuntimeOS os)
 {
     return _currentOSCompatibleWith.Contains(os);
 }
Ejemplo n.º 3
0
 internal static bool IsCurrentOSCompatibleWith(RuntimeOS os)
 {
     return currentOSCompatibleWith.ContainsKey(os);
 }
Ejemplo n.º 4
0
 public static bool IsCurrentOSCompatibleWith(RuntimeOS os)
 {
     return(_currentOSCompatibleWith.ContainsKey(os));
 }
Ejemplo n.º 5
0
 internal static bool IsCurrentOSCompatibleWith(RuntimeOS os)
 {
     return(currentOSCompatibleWith.ContainsKey(os));
 }