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