IsLinux() public méthode

Checks if the object represents one of Linux-specific ABIs.
public IsLinux ( ) : bool
Résultat bool
Exemple #1
0
		private static INativeLibraryLoader GetNativeLibraryLoader(ABI abi)
		{
			if (abi.IsWindows())
				return new WindowsLibraryLoader();
			else if (abi.IsLinux())
				return new LinuxLibraryLoader();
			else if (abi.IsOSX())
				return new OSXLibraryLoader();
			else
				return null;
		}
Exemple #2
0
 private static INativeLibraryLoader GetNativeLibraryLoader(ABI abi)
 {
     if (abi.IsWindows())
     {
         return(new WindowsLibraryLoader());
     }
     else if (abi.IsLinux())
     {
         return(new LinuxLibraryLoader());
     }
     else if (abi.IsOSX())
     {
         return(new OSXLibraryLoader());
     }
     else
     {
         return(null);
     }
 }
Exemple #3
0
 private static INativeLibraryLoader GetNativeLibraryLoader(ABI abi)
 {
     if (abi.IsWindows())
         return new WindowsLibraryLoader();
     else if (abi.IsLinux())
         return new LinuxLibraryLoader();
     else if (abi.IsOSX())
         return new OSXLibraryLoader();
     else
         return null;
 }