public string GetOSName(Process process) { if (_osInfo == null) { _osInfo = OSHelper.GetComputerDescription(); } return(_osInfo.ProductName); }
public string GetOSVersion(Process process) { if (_osInfo == null) { _osInfo = OSHelper.GetComputerDescription(); } var version = _osInfo.Version; if (!string.IsNullOrEmpty(_osInfo.BuildNumber)) { version += " " + _osInfo.BuildNumber; } return(version); }
public string GetOSVersion (Process process) { if (_osInfo == null) _osInfo = OSHelper.GetComputerDescription(); var version = _osInfo.Version; if (!string.IsNullOrEmpty (_osInfo.BuildNumber)) version += " " + _osInfo.BuildNumber; return version; }
public string GetOSName (Process process) { if (_osInfo == null) _osInfo = OSHelper.GetComputerDescription(); return _osInfo.ProductName; }