IsWindows() public static method

public static IsWindows ( ) : bool
return bool
コード例 #1
0
 public static LaunchResult LaunchInTerminal(string directory, string runtimePath, string[] runtimeArgs, string program, string[] programArgs, Dictionary <string, string> environmentVariables)
 {
     if (Utilities.IsOSX())
     {
         return(LaunchInTerminalOSX(directory, runtimePath, runtimeArgs, program, programArgs, environmentVariables));
     }
     if (Utilities.IsLinux())
     {
         return(LaunchInTerminalLinux(directory, runtimePath, runtimeArgs, program, programArgs, environmentVariables));
     }
     if (Utilities.IsWindows())
     {
         return(LaunchInTerminalWindows(directory, runtimePath, runtimeArgs, program, programArgs, environmentVariables));
     }
     return(LaunchInTerminalGeneric(directory, runtimePath, runtimeArgs, program, programArgs, environmentVariables));
 }