53 references to HasValue
dotnet-dev-certs (53)
Program.cs (52)
125
var reporter = new ConsoleReporter(PhysicalConsole.Singleton, verbose.
HasValue
(), quiet.
HasValue
());
127
if (verbose.
HasValue
())
133
if (checkJsonOutput.
HasValue
())
135
if (exportPath.
HasValue
() || trust?.
HasValue
() == true || format.
HasValue
() || noPassword.
HasValue
() || check.
HasValue
() || clean.
HasValue
() ||
136
(!import.
HasValue
() && password.
HasValue
()) ||
137
(import.
HasValue
() && !password.
HasValue
()))
144
if (clean.
HasValue
())
146
if (exportPath.
HasValue
() || trust?.
HasValue
() == true || format.
HasValue
() || noPassword.
HasValue
() || check.
HasValue
() || checkJsonOutput.
HasValue
() ||
147
(!import.
HasValue
() && password.
HasValue
()) ||
148
(import.
HasValue
() && !password.
HasValue
()))
155
if (check.
HasValue
())
157
if (exportPath.
HasValue
() || password.
HasValue
() || noPassword.
HasValue
() || clean.
HasValue
() || format.
HasValue
() || import.
HasValue
() || checkJsonOutput.
HasValue
())
164
if (!clean.
HasValue
() && !check.
HasValue
())
166
if (password.
HasValue
() && noPassword.
HasValue
())
172
if (noPassword.
HasValue
() && !(format.
HasValue
() && string.Equals(format.Value(), "PEM", StringComparison.OrdinalIgnoreCase)))
178
if (import.
HasValue
())
185
if (check.
HasValue
())
190
if (clean.
HasValue
())
193
if (cleanResult != Success || !import.
HasValue
())
201
if (checkJsonOutput.
HasValue
())
327
if (trust != null && trust.
HasValue
())
333
if (verbose == null || !verbose.
HasValue
())
379
var certificates = manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, exportPath.
HasValue
());
395
var isTrustOptionSet = trust?.
HasValue
() == true;
423
if (exportFormat.
HasValue
() && !Enum.TryParse(exportFormat.Value(), ignoreCase: true, out format))
434
password.
HasValue
() || (noPassword.
HasValue
() && format == CertificateKeyExportFormat.Pem),
436
exportFormat.
HasValue
() ? format : CertificateKeyExportFormat.Pfx);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
100
return
HasValue
() ? Values[0] : null;