39 references to HasValue
dotnet-dev-certs (39)
Program.cs (38)
116
var reporter = new ConsoleReporter(PhysicalConsole.Singleton, verbose.
HasValue
(), quiet.
HasValue
());
118
if (verbose.
HasValue
())
124
if (clean.
HasValue
())
126
if (exportPath.
HasValue
() || trust?.
HasValue
() == true || format.
HasValue
() || noPassword.
HasValue
() || check.
HasValue
() ||
127
(!import.
HasValue
() && password.
HasValue
()) ||
128
(import.
HasValue
() && !password.
HasValue
()))
135
if (check.
HasValue
())
137
if (exportPath.
HasValue
() || password.
HasValue
() || noPassword.
HasValue
() || clean.
HasValue
() || format.
HasValue
() || import.
HasValue
())
144
if (!clean.
HasValue
() && !check.
HasValue
())
146
if (password.
HasValue
() && noPassword.
HasValue
())
152
if (noPassword.
HasValue
() && !(format.
HasValue
() && string.Equals(format.Value(), "PEM", StringComparison.OrdinalIgnoreCase)))
158
if (import.
HasValue
())
165
if (check.
HasValue
())
170
if (clean.
HasValue
())
173
if (cleanResult != Success || !import.
HasValue
())
302
if (trust != null && trust.
HasValue
())
308
if (verbose == null || !verbose.
HasValue
())
344
var certificates = manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, exportPath.
HasValue
());
360
var isTrustOptionSet = trust?.
HasValue
() == true;
388
if (exportFormat.
HasValue
() && !Enum.TryParse(exportFormat.Value(), ignoreCase: true, out format))
399
password.
HasValue
() || (noPassword.
HasValue
() && format == CertificateKeyExportFormat.Pem),
401
exportFormat.
HasValue
() ? format : CertificateKeyExportFormat.Pfx);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
100
return
HasValue
() ? Values[0] : null;