public CommonInstaller(string installerPath, CommonInstallOptions options) { if (string.IsNullOrWhiteSpace(installerPath)) { throw new ArgumentException("Installer path can not be null or whitespace."); } this.InstallerPath = installerPath; this.Options = options ?? throw new ArgumentNullException("Install options is null"); }
public CommonInstaller(string installerPath, CommonInstallOptions options) { if (string.IsNullOrWhiteSpace(installerPath)) { throw new ArgumentException("Installer path can not be null or whitespace."); } this.InstallerPath = installerPath; if (string.IsNullOrWhiteSpace(options.GameRootPath)) { throw new ArgumentException("Game root path in options can not be null or whitespace."); } this.Options = options; }