public static Os DetectOs() { Os osCommands = new Nix(); if (Path.DirectorySeparatorChar == '\\') osCommands = new Windows(); _log.InfoFormat("Detected the operating system: '{0}'", osCommands.Description); return osCommands; }
public static Os DetectOs() { Os osCommands = new Nix(); if (Path.DirectorySeparatorChar == '\\') { osCommands = new Windows(); } _log.InfoFormat("Detected the operating system: '{0}'", osCommands.Description); return(osCommands); }