2954 references to HasValue
aspire (32)
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
507if (isFirstAttempt && !pid.HasValue)
Commands\LogsCommand.cs (6)
156if (tail.HasValue && tail.Value < 1) 255if (tail.HasValue && entries.Count > tail.Value) 269Timestamp = timestamps && entry.Timestamp.HasValue ? FormatTimestamp(entry.Timestamp.Value) : null, 309if (tail.HasValue) 447var timestampPrefix = timestamps && entry.Timestamp.HasValue ? FormatTimestamp(entry.Timestamp.Value) + " " : string.Empty; 455Timestamp = timestamps && entry.Timestamp.HasValue ? FormatTimestamp(entry.Timestamp.Value) : null,
Commands\RootCommand.cs (1)
112return level.HasValue ? ["--log-level", level.Value.ToString()] : null;
Commands\RunCommand.cs (2)
1145if (pid.HasValue) 1198if (pid.HasValue)
Commands\TelemetryLogsCommand.cs (3)
95if (limit.HasValue && limit.Value < 1) 144int? effectiveLimit = (limit.HasValue && !follow) ? limit.Value : null; 254var timestamp = log.TimeUnixNano.HasValue
Commands\TelemetrySpansCommand.cs (3)
85if (limit.HasValue && limit.Value < 1) 134int? effectiveLimit = (limit.HasValue && !follow) ? limit.Value : null; 262var timestamp = span.StartTimeUnixNano.HasValue
Commands\TelemetryTracesCommand.cs (3)
83if (limit.HasValue && limit.Value < 1) 269var earliestStart = info.StartTimeNano.HasValue && span.StartTimeUnixNano.HasValue 287var timestamp = info.StartTimeNano.HasValue
Commands\TerminalAttachCommand.cs (1)
216if (requestedReplica.HasValue)
Documentation\Docs\LlmsTxtParser.cs (1)
634if (headingInfo.HasValue)
Interaction\ConsoleInteractionService.cs (1)
604var prefix = lineNumber.HasValue ? $"#{lineNumber.Value}: " : "";
Projects\RunningInstanceManager.cs (2)
65var cliPidText = appHostInfo.CliProcessId.HasValue ? appHostInfo.CliProcessId.Value.ToString(CultureInfo.InvariantCulture) : "N/A"; 122if (appHostInfo.CliProcessId.HasValue)
Projects\TypeScriptAppHostToolchainResolver.cs (1)
413return result.HasValue;
src\Shared\ConsoleLogs\AnsiParser.cs (4)
460if (newState.ForegroundColor.HasValue) 465if (newState.BackgroundColor.HasValue) 483if (newState.XtermForegroundColorCode.HasValue) 492if (newState.XtermBackgroundColorCode.HasValue)
src\Shared\Otlp\OtlpHelpers.cs (2)
82if (startNano.HasValue && endNano.HasValue && endNano.Value >= startNano.Value)
Utils\ConsoleActivityLogger.cs (1)
732var text = seconds.HasValue ? $"{message} ({DurationFormatter.FormatDuration(TimeSpan.FromSeconds(seconds.Value), CultureInfo.InvariantCulture, DecimalDurationDisplay.Fixed)})" : message;
Aspire.Cli.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
70var timestamp = _logStart.HasValue ?
Aspire.Dashboard (52)
Components\Controls\AspireProgressRing.razor.cs (2)
68private string CssClass => $"aspire-progress-ring {(Value.HasValue ? "determinate" : "indeterminate")} {Class}"; 76if (!Value.HasValue)
Components\Controls\ResourceDetails.razor.cs (2)
476if (context.LastRunAtTimeStamp.HasValue) 500if (context.LastRunAtTimeStamp.HasValue)
Model\GenAI\GenAISchemaHelpers.cs (1)
99result = result.HasValue ? result.Value | schemaType : schemaType;
Model\ResourceViewModel.cs (2)
83var endpoint = port.HasValue ? $"{host}:{port.Value}" : host; 92var parameterEndpoint = parameterPort.HasValue ? $"{parameterHost}:{parameterPort.Value}" : parameterHost;
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (39)
131if (json.Flags.HasValue) 139if (json.Kind.HasValue) 143if (json.StartTimeUnixNano.HasValue) 147if (json.EndTimeUnixNano.HasValue) 185if (json.TimeUnixNano.HasValue) 227if (json.Flags.HasValue) 241if (json.Code.HasValue) 293if (json.TimeUnixNano.HasValue) 297if (json.ObservedTimeUnixNano.HasValue) 301if (json.SeverityNumber.HasValue) 447if (json.AggregationTemporality.HasValue) 465if (json.AggregationTemporality.HasValue) 482if (json.AggregationTemporality.HasValue) 512if (json.StartTimeUnixNano.HasValue) 516if (json.TimeUnixNano.HasValue) 520if (json.AsDouble.HasValue) 524else if (json.AsInt.HasValue) 549if (json.StartTimeUnixNano.HasValue) 553if (json.TimeUnixNano.HasValue) 557if (json.Count.HasValue) 561if (json.Sum.HasValue) 587if (json.Min.HasValue) 591if (json.Max.HasValue) 608if (json.StartTimeUnixNano.HasValue) 612if (json.TimeUnixNano.HasValue) 616if (json.Count.HasValue) 620if (json.Sum.HasValue) 625if (json.ZeroCount.HasValue) 645if (json.Min.HasValue) 649if (json.Max.HasValue) 681if (json.StartTimeUnixNano.HasValue) 685if (json.TimeUnixNano.HasValue) 689if (json.Count.HasValue) 723if (json.TimeUnixNano.HasValue) 727if (json.AsDouble.HasValue) 731else if (json.AsInt.HasValue) 803else if (json.BoolValue.HasValue) 807else if (json.IntValue.HasValue) 811else if (json.DoubleValue.HasValue)
src\Shared\ConsoleLogs\AnsiParser.cs (4)
460if (newState.ForegroundColor.HasValue) 465if (newState.BackgroundColor.HasValue) 483if (newState.XtermForegroundColorCode.HasValue) 492if (newState.XtermBackgroundColorCode.HasValue)
src\Shared\Otlp\OtlpHelpers.cs (2)
82if (startNano.HasValue && endNano.HasValue && endNano.Value >= startNano.Value)
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
70var timestamp = _logStart.HasValue ?
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
70var timestamp = _logStart.HasValue ?
Aspire.Hosting (18)
ApplicationModel\ResourceNotificationService.cs (1)
1307if (report.LastRunAt.HasValue)
Cli\CliOrphanDetector.cs (1)
70if (expectedStartTimeUnix.HasValue)
Dashboard\DashboardService.cs (2)
239var effectiveMaxFileSize = maxFileUploadSize.HasValue 244else if (maxFileUploadSize.HasValue && input.InputType == InputType.File)
Dashboard\proto\Partials.cs (4)
35if (snapshot.CreationTimeStamp.HasValue) 40if (snapshot.StartTimeStamp.HasValue) 45if (snapshot.StopTimeStamp.HasValue) 137if (report.LastRunAt.HasValue)
Dcp\DcpResourceWatcher.cs (1)
162Debug.Assert(!entry.LogsAvailable.HasValue || entry.LogsAvailable.Value, "entry.LogsAvailable should never be 'false'");
Dcp\KubernetesService.cs (3)
331if (limit.HasValue) 336if (tail.HasValue) 341if (skip.HasValue)
ExternalServiceBuilderExtensions.cs (1)
328HttpRequestException hre when hre.StatusCode.HasValue =>
Publishing\ManifestPublishingContext.cs (1)
508(!resolved.TargetPort.Value.HasValue || resolved.TargetPort.Value.Value != exposedPort))
src\Shared\ConsoleLogs\AnsiParser.cs (4)
460if (newState.ForegroundColor.HasValue) 465if (newState.BackgroundColor.HasValue) 483if (newState.XtermForegroundColorCode.HasValue) 492if (newState.XtermBackgroundColorCode.HasValue)
Aspire.Hosting.Azure (9)
AzureProvisioningResourceExtensions.cs (1)
283if (isSecure.HasValue)
Provisioning\Internal\BaseProvisioningContextProvider.cs (1)
241if (_options.AllowResourceGroupCreation.HasValue)
Provisioning\Internal\DefaultTokenCredentialProvider.cs (5)
85if (processTimeout.HasValue) 95if (processTimeout.HasValue) 105if (processTimeout.HasValue) 115if (processTimeout.HasValue) 132if (processTimeout.HasValue)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (1)
395if (existingResourceGroup.HasValue && !string.IsNullOrEmpty(existingResourceGroup.Value.Name))
src\Shared\AzurePortalUrls.cs (1)
112return tenantId.HasValue ? $"#@{tenantId.Value}" : "#";
Aspire.Hosting.Azure.AppContainers (1)
src\Shared\AzurePortalUrls.cs (1)
112return tenantId.HasValue ? $"#@{tenantId.Value}" : "#";
Aspire.Hosting.Azure.AppService (1)
src\Shared\AzurePortalUrls.cs (1)
112return tenantId.HasValue ? $"#@{tenantId.Value}" : "#";
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubResource.cs (2)
68if (PartitionCount.HasValue) 86if (hub.PartitionCount.HasValue)
Aspire.Hosting.Azure.ServiceBus (32)
AzureServiceBusQueueResource.cs (14)
117if (DeadLetteringOnMessageExpiration.HasValue) 121if (DefaultMessageTimeToLive.HasValue) 125if (DuplicateDetectionHistoryTimeWindow.HasValue) 137if (LockDuration.HasValue) 141if (MaxDeliveryCount.HasValue) 145if (RequiresDuplicateDetection.HasValue) 149if (RequiresSession.HasValue) 168if (queue.DeadLetteringOnMessageExpiration.HasValue) 172if (queue.DefaultMessageTimeToLive.HasValue) 176if (queue.DuplicateDetectionHistoryTimeWindow.HasValue) 188if (queue.LockDuration.HasValue) 192if (queue.MaxDeliveryCount.HasValue) 196if (queue.RequiresDuplicateDetection.HasValue) 200if (queue.RequiresSession.HasValue)
AzureServiceBusRule.cs (2)
95if (CorrelationFilter.RequiresPreprocessing.HasValue) 176if (rule.CorrelationFilter.RequiresPreprocessing.HasValue)
AzureServiceBusSubscriptionResource.cs (10)
114if (DeadLetteringOnMessageExpiration.HasValue) 118if (DefaultMessageTimeToLive.HasValue) 130if (LockDuration.HasValue) 134if (MaxDeliveryCount.HasValue) 138if (RequiresSession.HasValue) 160if (subscription.DeadLetteringOnMessageExpiration.HasValue) 164if (subscription.DefaultMessageTimeToLive.HasValue) 176if (subscription.LockDuration.HasValue) 180if (subscription.MaxDeliveryCount.HasValue) 184if (subscription.RequiresSession.HasValue)
AzureServiceBusTopicResource.cs (6)
90if (DefaultMessageTimeToLive.HasValue) 94if (DuplicateDetectionHistoryTimeWindow.HasValue) 98if (RequiresDuplicateDetection.HasValue) 119if (topic.DefaultMessageTimeToLive.HasValue) 123if (topic.DuplicateDetectionHistoryTimeWindow.HasValue) 127if (topic.RequiresDuplicateDetection.HasValue)
Aspire.Hosting.Azure.Tests (4)
AzureStorageExtensionsTests.cs (4)
26if (isReadOnly.HasValue) 52if (isReadOnly.HasValue) 78if (isReadOnly.HasValue) 104if (isReadOnly.HasValue)
Aspire.Hosting.CodeGeneration.Go (1)
GoLanguageSupport.cs (1)
83var random = request.PortSeed.HasValue
Aspire.Hosting.CodeGeneration.Java (1)
JavaLanguageSupport.cs (1)
73var random = request.PortSeed.HasValue
Aspire.Hosting.CodeGeneration.Python (1)
PythonLanguageSupport.cs (1)
105var random = request.PortSeed.HasValue
Aspire.Hosting.CodeGeneration.Rust (1)
RustLanguageSupport.cs (1)
87var random = request.PortSeed.HasValue
Aspire.Hosting.CodeGeneration.TypeScript (1)
TypeScriptLanguageSupport.cs (1)
98var random = request.PortSeed.HasValue
Aspire.Hosting.DevTunnels (3)
DevTunnelCliClient.cs (3)
196if (portOptions.AllowAnonymous.HasValue) 255logger?.LogTrace("Getting access details for {PortInfo}dev tunnel '{TunnelId}'.", portNumber.HasValue ? $"port '{portNumber}' on " : string.Empty, tunnelId); 259return access ?? throw new DistributedApplicationException($"Failed to get access details for '{tunnelId}'{(portNumber.HasValue ? $" port {portNumber}" : "")}. Exit code {exitCode}: {error}");
Aspire.Hosting.Garnet.Tests (2)
AddGarnetTests.cs (2)
205if (isReadOnly.HasValue) 230if (isReadOnly.HasValue)
Aspire.Hosting.Go (1)
GoHostingExtensions.cs (1)
126if (delveAnnotation.OnlySameUser.HasValue)
Aspire.Hosting.PostgreSQL.Tests (4)
AddPostgresTests.cs (4)
794if (isReadOnly.HasValue) 821if (isReadOnly.HasValue) 875if (isReadOnly.HasValue) 902if (isReadOnly.HasValue)
Aspire.Hosting.RabbitMQ.Tests (1)
AddRabbitMQTests.cs (1)
74if (!withManagementPluginPort.HasValue)
Aspire.Hosting.Redis.Tests (2)
AddRedisTests.cs (2)
628if (isReadOnly.HasValue) 653if (isReadOnly.HasValue)
Aspire.Hosting.RemoteHost.Tests (1)
CapabilityDispatcherTests.cs (1)
2617return value.HasValue ? $"Received: {value.Value}" : "No value";
Aspire.Hosting.Seq.Tests (2)
AddSeqTests.cs (2)
124if (isReadOnly.HasValue) 149if (isReadOnly.HasValue)
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
70var timestamp = _logStart.HasValue ?
Aspire.Hosting.Tests (5)
DistributedApplicationTests.cs (1)
981if (explicitTrust.HasValue)
InteractionServiceTests.cs (3)
97Assert.True(id1.HasValue && id2.HasValue && id3.HasValue && id1 < id2 && id2 < id3);
WithTerminalTests.cs (1)
544Assert.True(liveProcessStartTimeUnixMilliseconds.HasValue);
Aspire.Hosting.TestUtilities (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
70var timestamp = _logStart.HasValue ?
Aspire.Hosting.Valkey.Tests (2)
AddValkeyTests.cs (2)
201if (isReadOnly.HasValue) 226if (isReadOnly.HasValue)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (3)
AspireAzureEFCoreCosmosExtensions.cs (3)
166if (settings.RequestTimeout.HasValue) 193if (settings.RequestTimeout.HasValue) 223extension.RequestTimeout.HasValue &&
Aspire.Microsoft.EntityFrameworkCore.SqlServer (4)
AspireSqlServerEFCoreSqlClientExtensions.cs (4)
81if (settings.CommandTimeout.HasValue) 117if (!settings.DisableRetry || settings.CommandTimeout.HasValue) 159if (settings.CommandTimeout.HasValue) 162extension.CommandTimeout.HasValue &&
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (4)
AspireEFPostgreSqlExtensions.cs (4)
93if (settings.CommandTimeout.HasValue) 129if (!settings.DisableRetry || settings.CommandTimeout.HasValue) 174if (settings.CommandTimeout.HasValue) 177extension.CommandTimeout.HasValue &&
Aspire.Oracle.EntityFrameworkCore (4)
AspireOracleEFCoreExtensions.cs (4)
80if (settings.CommandTimeout.HasValue) 116if (!settings.DisableRetry || settings.CommandTimeout.HasValue) 161if (settings.CommandTimeout.HasValue) 164extension.CommandTimeout.HasValue &&
Aspire.Playground.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
70var timestamp = _logStart.HasValue ?
Aspire.Pomelo.EntityFrameworkCore.MySql (4)
AspireEFMySqlExtensions.cs (4)
134if (settings.CommandTimeout.HasValue) 171if (!settings.DisableRetry || settings.CommandTimeout.HasValue) 222if (settings.CommandTimeout.HasValue) 225extension.CommandTimeout.HasValue &&
csc (1)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
153if (serverResult.HasValue)
dotnet-aot (30)
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (2)
102if (commandLineOption.IsHidden.HasValue && commandLineOption.IsHidden.Value) continue; 104if (commandLineOption.IsBuiltIn.HasValue && commandLineOption.IsBuiltIn.Value)
parent\dotnet\Commands\Test\MTP\Terminal\SimpleTerminalBase.cs (1)
40if (lineNumber.HasValue)
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.cs (2)
143if (attemptNumber.HasValue) 836if (duration.HasValue)
parent\dotnet\Commands\Test\MTP\Terminal\TestProgressState.cs (2)
340if (duration.HasValue) 427if (attemptNumber.HasValue && attemptNumber.Value != registeredAttemptNumber)
parent\dotnet\Commands\Test\MTP\TestApplicationHandler.cs (10)
97if (!_handshakeInfo.HasValue) 123if (attemptNumber.HasValue) 273if (!_handshakeInfo.HasValue) 321if (!_handshakeInfo.HasValue) 356testResult.Duration.HasValue ? TimeSpan.FromTicks(testResult.Duration.Value) : null, 372testResult.Duration.HasValue ? TimeSpan.FromTicks(testResult.Duration.Value) : null, 392if (!_handshakeInfo.HasValue) 426if (!_handshakeInfo.HasValue) 493if (!_handshakeInfo.HasValue) 642if (_receivedTestHostHandshake && _handshakeInfo.HasValue)
parent\dotnet\Commands\Test\MTP\TestRunPolicy.cs (1)
48if (timeout.HasValue && timeout.Value <= TimeSpan.Zero)
parent\dotnet\Commands\Tool\List\ToolListLocalCommand.cs (1)
53if (packageId.HasValue && !packages.Any())
parent\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
46if (!manifestFileOptional.HasValue)
parent\dotnet\Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (2)
255if (!string.IsNullOrEmpty(packagePath) && File.Exists(packagePath) && (offlineCache == null || !offlineCache.HasValue)) 259if (!string.IsNullOrEmpty(packagePath) && (offlineCache == null || !offlineCache.HasValue))
parent\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
182var resolvedDownloadFolder = downloadFolder == null || !downloadFolder.HasValue ? _packageInstallDir.Value : downloadFolder.Value.Value;
parent\dotnet\NugetSearch\NugetToolSearchApiRequest.cs (2)
66if (skip.HasValue) 71if (take.HasValue)
parent\dotnet\ToolManifest\ToolManifestEditor.cs (3)
233if (!deserializedManifest.IsRoot.HasValue) 368if (Version.HasValue) 373if (IsRoot.HasValue)
parent\dotnet\ToolManifest\ToolManifestFinder.cs (2)
164while (currentSearchDirectory.HasValue && (currentSearchDirectory.Value.GetParentPathNullable() != null || AllowManifestInRoot())) 222while (currentSearchDirectory.HasValue && currentSearchDirectory.Value.GetParentPathNullable() != null)
dotnet-dev-certs (2)
src\aspnetcore\src\Tools\Shared\CommandLine\ConsoleReporter.cs (2)
38if (color.HasValue) 45if (color.HasValue)
dotnet-getdocument (2)
src\aspnetcore\src\Tools\Shared\CommandLine\ConsoleReporter.cs (2)
38if (color.HasValue) 45if (color.HasValue)
dotnet-openapi (2)
src\aspnetcore\src\Tools\Shared\CommandLine\ConsoleReporter.cs (2)
38if (color.HasValue) 45if (color.HasValue)
dotnet-sql-cache (2)
src\aspnetcore\src\Tools\Shared\CommandLine\ConsoleReporter.cs (2)
38if (color.HasValue) 45if (color.HasValue)
dotnet-svcutil-lib (25)
AppInsightsTelemetryClient.cs (1)
29if (!s_isUserOptedIn.HasValue)
Bootstrapper\SvcutilBootstrapper.cs (1)
37if (this.Options.ToolContext.HasValue && this.Options.ToolContext.Value <= OperationalContext.Global)
CommandProcessorOptions.cs (8)
261if (!this.ToolContext.HasValue) 266if (!this.Verbosity.HasValue) 271if (!this.AcceptCert.HasValue) 276if (!this.ServiceContract.HasValue) 323Debug.Assert(this.ToolContext.HasValue, $"{nameof(ToolContext)} is not initialized!"); 324Debug.Assert(this.Verbosity.HasValue, $"{nameof(Verbosity)} is not initialized!"); 605if (!this.TypeReuseMode.HasValue) 755if (!this.SerializerMode.HasValue)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
538return value.HasValue;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageProperty.cs (3)
326if (!contentLength.HasValue || 327(contentLength.HasValue && contentLength.Value > 0)) 340(!content.Headers.ContentLength.HasValue ||
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (3)
134_contentLength = content.Headers.ContentLength.HasValue ? content.Headers.ContentLength.Value : -1; 175if (!content.Headers.ContentLength.HasValue) 297_contentLength = content.Headers.ContentLength.HasValue ? content.Headers.ContentLength.Value : -1;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageProperty.cs (3)
350if (!contentLength.HasValue || 351(contentLength.HasValue && contentLength.Value > 0)) 364(!content.Headers.ContentLength.HasValue ||
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (1)
241if (_contentLength.HasValue)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
65if (p.HasValue)
Metadata\MetadataDocumentLoader.cs (1)
699if (!_hashCode.HasValue)
Shared\Options\WCFCSUpdateOptions.cs (1)
80else if (this.ReuseTypesinAllReferencedAssemblies.HasValue)
Shared\ProjectDependency.cs (1)
362if (!isValid.HasValue)
dotnet-svcutil.xmlserializer (2)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (1)
86bool currentDefaultIsValid = (_defaultMode.HasValue && (_defaultMode & _validModes) != ToolMode.None);
Microsoft\Tools\ServiceModel\SvcUtil\ToolRuntime.cs (1)
38Tool.Assert(_options.GetToolMode().HasValue, System.SR.Format(System.SR.AmbiguousToolUseage));
dotnet-user-jwts (2)
src\aspnetcore\src\Tools\Shared\CommandLine\ConsoleReporter.cs (2)
38if (color.HasValue) 45if (color.HasValue)
dotnet-user-secrets (2)
src\aspnetcore\src\Tools\Shared\CommandLine\ConsoleReporter.cs (2)
38if (color.HasValue) 45if (color.HasValue)
dotnet-watch (1)
Watch\DotNetWatcher.cs (1)
110if (staticFileHandler != null && finishedTask == fileSetTask && fileSetTask.Result.HasValue)
GenerateDocumentationAndConfigFiles (32)
Program.cs (4)
1148return severity.HasValue ? severity.ToString() ?? "None" : "None"; 1540if (releaseTrackingLine.EnabledByDefault.HasValue && 1541releaseTrackingLine.DefaultSeverity.HasValue) 1584if (!severity.HasValue)
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
119reuseInfoOpt.HasValue && 186if (!map.TryGetValue(document.Id, out var reuseInfoOpt) || !reuseInfoOpt.HasValue)
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.Analyzers\Core\MetaAnalyzers\ReleaseTrackingHelper.cs (2)
195if (invalidEntryKind.HasValue) 205if (invalidEntryKind.HasValue)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
173if (!effectiveSeverity.HasValue) 223return overriddenSeverity.HasValue ? overriddenSeverity.Value.ToDiagnosticSeverity() : rule.DefaultSeverity;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (3)
14=> !contextFilterSpan.HasValue || span.IntersectsWith(contextFilterSpan.Value); 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 178Contract.ThrowIfFalse(context.FilterSpan.HasValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
154if (providerAndTree.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SourceTextExtensions_SharedWithCodeStyle.cs (1)
22if (!linePosition.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (3)
50return firstOffset.HasValue 61return lastOffset.HasValue && lastOffset.Value < lineText.Length 195if (firstNonWhitespaceChar.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (4)
33Debug.Assert(valueUsageInfoOpt.HasValue ^ typeOrNamespaceUsageInfoOpt.HasValue); 46=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsReadFrom(); 49=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsWrittenTo();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
787return span.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
241if (isUserConfiguredGeneratedCode.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
34return firstNonWhitespaceOffset.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
30if (span.HasValue && !HasImportThatIntersectsWithSpan(span.Value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
26severity.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
26capitalization.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
112if (accessibility.HasValue && !ApplicableAccessibilityList.Any(static (k, accessibility) => k == accessibility, accessibility))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (2)
46if (result.HasValue) 91if (result.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
244if (desiredIndex.HasValue)
GetDocument.Insider (2)
src\aspnetcore\src\Tools\Shared\CommandLine\ConsoleReporter.cs (2)
38if (color.HasValue) 45if (color.HasValue)
ILCompiler.Compiler (44)
Compiler\Dataflow\DiagnosticUtilities.cs (1)
65if (!decoded.HasValue)
Compiler\Dataflow\MethodBodyScanner.cs (3)
233if (!existingValue.HasValue 933else if (localValue.HasValue) 1217if (valueBasicBlockPair.HasValue)
Compiler\DependencyAnalysis\EETypeNode.cs (1)
191if (!_mightHaveInterfaceDispatchMap.HasValue)
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (1)
253if (implSlot.HasValue)
Compiler\DependencyAnalysis\NodeFactory.NativeLayout.cs (2)
244if (other.HasValue) 417if (other.HasValue)
Compiler\DependencyAnalysis\PInvokeMethodFixupNode.cs (3)
88if (objcFunction.HasValue) 142if (!decodedAttr.HasValue && declaringModule.Assembly is EcmaAssembly asm) 155if (decodedAttr.HasValue
Compiler\DependencyAnalysis\PInvokeModuleFixupNode.cs (2)
60if (_pInvokeModuleData.DllImportSearchPath.HasValue) 128if (DllImportSearchPath.HasValue)
Compiler\Logger.cs (5)
90if (messageContainer.HasValue) 97if (warning.HasValue) 108if (warning.HasValue) 149if (error.HasValue) 159if (error.HasValue)
Compiler\Logging\MessageOrigin.cs (2)
109if (SourceLine.HasValue) 112if (SourceColumn.HasValue)
Compiler\SubstitutedILProvider.cs (3)
719if (!stack.TryPop(out int? val) || !val.HasValue) 772if (!ret.HasValue) 1037if (!equality.HasValue)
parent\parent\Common\Compiler\DependencyAnalysis\Target_X64\X64Emitter.cs (2)
288else if (lowOrderBitsOfBaseReg == (byte)Register.RSP || addrMode.IndexReg.HasValue) 349if (addrMode.IndexReg.HasValue && addrMode.IndexReg.Value >= Register.R8 && addrMode.IndexReg.Value <= Register.R15)
parent\parent\Common\Compiler\DependencyAnalysis\Target_X86\X86Emitter.cs (1)
270else if (lowOrderBitsOfBaseReg == (byte)Register.ESP || addrMode.IndexReg.HasValue)
parent\parent\Common\Compiler\ObjectWriter\WasmNative.cs (1)
143if (limitType == WasmLimitType.HasMinAndMax && !max.HasValue)
parent\parent\Common\Compiler\ObjectWriter\WasmSymbolManager.cs (1)
68Debug.Assert(!expectedIndex.HasValue || expectedIndex.Value == ordinal);
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (2)
262if (nullableOfEquatable.HasValue && nullableOfEquatable.Value) 269if (!equatable.HasValue)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
110if (!implementsInterfaceOfSelf.HasValue)
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
68if (equatable.HasValue && !equatable.Value)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.Aot.cs (2)
103Debug.Assert(marshalAs != null && marshalAs.SizeConst.HasValue); 108if (marshalAs.SizeConst.HasValue)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (1)
189if (!parameterIndex.HasValue || customModifierData == null)
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (4)
332if (MarshalAsDescriptor == null || !MarshalAsDescriptor.SizeConst.HasValue) 360Debug.Assert(MarshalAsDescriptor.SizeConst.HasValue); 378Debug.Assert(MarshalAsDescriptor.SizeConst.HasValue); 548if (MarshalAsDescriptor == null || !MarshalAsDescriptor.SizeConst.HasValue)
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (5)
1169if (sizeConst.HasValue) 1174if (sizeParamIndex.HasValue) 1210if (sizeConst.HasValue) 1216if (!sizeConst.HasValue && !sizeParamIndex.HasValue)
ILCompiler.ReadyToRun (26)
Compiler\DependencyAnalysis\ReadyToRun\InstanceEntryPointTableNode.cs (1)
70Debug.Assert(handle.HasValue);
Compiler\DependencyAnalysis\ReadyToRun\ManifestMetadataTableNode.cs (1)
306Debug.Assert(handle.HasValue);
Compiler\DependencyAnalysis\ReadyToRun\ModuleTokenResolver.cs (3)
83if (handle.HasValue) 115if (handle.HasValue) 146if (handle.HasValue)
Compiler\ExternalReferenceTokenManager.cs (1)
107if (!_mutableModule.TryGetEntityHandle(entity).HasValue)
IL\ReadyToRunILProvider.cs (3)
304if (!owningMethodHandle.HasValue) 320if (!newHandle.HasValue) 353if (!newToken.HasValue)
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
852if (handle.HasValue)
parent\parent\Common\CallingConvention\ArgIterator.cs (1)
123return _argLocDescForStructInRegs.HasValue;
parent\parent\Common\Compiler\DependencyAnalysis\Target_X64\X64Emitter.cs (2)
288else if (lowOrderBitsOfBaseReg == (byte)Register.RSP || addrMode.IndexReg.HasValue) 349if (addrMode.IndexReg.HasValue && addrMode.IndexReg.Value >= Register.R8 && addrMode.IndexReg.Value <= Register.R15)
parent\parent\Common\Compiler\DependencyAnalysis\Target_X86\X86Emitter.cs (1)
270else if (lowOrderBitsOfBaseReg == (byte)Register.ESP || addrMode.IndexReg.HasValue)
parent\parent\Common\Compiler\ObjectWriter\WasmNative.cs (1)
143if (limitType == WasmLimitType.HasMinAndMax && !max.HasValue)
parent\parent\Common\Compiler\ObjectWriter\WasmSymbolManager.cs (1)
68Debug.Assert(!expectedIndex.HasValue || expectedIndex.Value == ordinal);
parent\parent\Common\JitInterface\CorInfoImpl.cs (1)
253if (newElem.HasValue)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
110if (!implementsInterfaceOfSelf.HasValue)
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
68if (equatable.HasValue && !equatable.Value)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (1)
189if (!parameterIndex.HasValue || customModifierData == null)
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (5)
1169if (sizeConst.HasValue) 1174if (sizeParamIndex.HasValue) 1210if (sizeConst.HasValue) 1216if (!sizeConst.HasValue && !sizeParamIndex.HasValue)
TypeSystem\Mutable\MutableModule.cs (1)
392if (handle.HasValue)
ILCompiler.RyuJit (1)
parent\parent\Common\JitInterface\CorInfoImpl.cs (1)
253if (newElem.HasValue)
ILCompiler.TypeSystem (5)
parent\parent\Common\TypeSystem\Common\TypeWithRepeatedFields.cs (1)
33if (_numFields.HasValue)
parent\parent\Common\TypeSystem\Ecma\EcmaType.TypeEquivalence.cs (2)
34if (!guidAttribute.HasValue) 60if (typeIdentifierAttribute.HasValue)
parent\parent\Common\TypeSystem\Ecma\MetadataExtensions.cs (1)
231if (!customAttributeValue.HasValue)
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
24if (!decodedAttribute.HasValue)
illink (2)
ILLink.RoslynAnalyzer (2)
DataFlow\LocalDataFlowVisitor.cs (1)
485if (precomputedValue.HasValue)
TrimAnalysis\ReflectionAccessAnalyzer.cs (1)
85foreach (var c in typeSymbol.GetConstructorsOnType(filter: parameterCount.HasValue ? c => c.Parameters.Length == parameterCount.Value : null, bindingFlags: bindingFlags))
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
200if (currentFeatureSwitch.HasValue) 222if (!currentFeatureSwitch.HasValue) 455if (!featureSwitch.HasValue) 481if (!featureSwitch.HasValue) 508if (!featureSwitch.HasValue)
Microsoft.Analyzers.Extra (3)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (3)
204if (!argLevel.HasValue) 212if (!argMessage.HasValue) 643if (!arg.HasValue)
Microsoft.Analyzers.Local (2)
ApiLifecycle\Json\JsonValue.cs (2)
36if (!value.HasValue) 53if (!value.HasValue)
Microsoft.Arcade.Common (4)
CompactConsoleLoggerFormatter.cs (4)
139if (background.HasValue) 144if (foreground.HasValue) 151if (foreground.HasValue) 156if (background.HasValue)
Microsoft.AspNetCore.Authentication (2)
RemoteAuthenticationOptions.cs (2)
173if (!Expiration.HasValue || !cookieOptions.Expires.HasValue)
Microsoft.AspNetCore.Authentication.Abstractions (3)
AuthenticationOptions.cs (1)
107if (!_disableAutoDefaultScheme.HasValue)
AuthenticationProperties.cs (2)
185if (value.HasValue) 217if (value.HasValue)
Microsoft.AspNetCore.Authentication.Cookies (6)
CookieAuthenticationHandler.cs (5)
253if (_refreshIssuedUtc.HasValue) 258if (_refreshExpiresUtc.HasValue) 276if (properties.IsPersistent && _refreshExpiresUtc.HasValue) 313if (signInContext.Properties.IssuedUtc.HasValue) 323if (!signInContext.Properties.ExpiresUtc.HasValue)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
166if (!ChunkSize.HasValue || ChunkSize.Value > templateLength + value.Length)
Microsoft.AspNetCore.Authentication.Negotiate (2)
NegotiateHandler.cs (2)
162if (result.HasValue) 255if (result.HasValue)
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
OpenIdConnectHandler.cs (1)
439if (maxAge.HasValue)
OpenIdConnectOptions.cs (3)
95if (MaxAge.HasValue && MaxAge.Value < TimeSpan.Zero) 356if (!Expiration.HasValue || !cookieOptions.Expires.HasValue)
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterOptions.cs (1)
123if (!Expiration.HasValue)
Microsoft.AspNetCore.Components (11)
BindConverter.cs (1)
1583return converted.HasValue;
OwningComponentBase.cs (2)
62if (disposing && _scope.HasValue && _scope.Value is IDisposable disposable) 87if (!IsDisposed && _scope.HasValue)
PersistentState\PersistingComponentStateSubscription.cs (1)
26if (_callback.HasValue)
PersistentState\RestoringComponentStateSubscription.cs (1)
27if (_registration.HasValue)
Rendering\RenderTreeBuilder.cs (4)
538if (!parentFrameIndex.HasValue) 615if (!parentFrameIndex.HasValue) 649if (!parentFrameIndex.HasValue) 742return parentIndex.HasValue
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternParser.cs (2)
534if (_mark.HasValue) 552else if (_mark.HasValue)
Microsoft.AspNetCore.Components.Endpoints (8)
CacheView\HybridCacheViewStore.cs (2)
55if (options.ExpiresSliding.HasValue) 62var absolute = options.ExpiresOn.HasValue
CacheView\MemoryCacheViewStore.cs (2)
78if (options.ExpiresSliding.HasValue) 83if (options.ExpiresOn.HasValue)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
56return eventHandlerId.HasValue
Rendering\EndpointHtmlRenderer.Prerendering.cs (2)
28var closestRenderModeBoundary = parentComponentId.HasValue 361_htmlToEmitOrNull.HasValue ? _htmlToEmitOrNull.Value.QuiescenceTask : Task.CompletedTask;
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
166if (!ChunkSize.HasValue || ChunkSize.Value > templateLength + value.Length)
Microsoft.AspNetCore.Components.QuickGrid (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\ColumnBase_razor.g.cs (1)
143if (Sortable.HasValue ? Sortable.Value : IsSortableByDefault())
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Paginator_razor.g.cs (1)
47if (State.TotalItemCount.HasValue)
QuickGrid.razor.cs (2)
343if (isDefaultSortColumn && _sortByColumn is null && initialSortDirection.HasValue) 615if (request.Count.HasValue)
Microsoft.AspNetCore.Components.Server (6)
BlazorPack\BlazorPackHubProtocolWorker.cs (1)
40if (!bytes.HasValue)
BlazorPack\SequenceOfT.cs (1)
230if (minBufferSize.HasValue)
Circuits\RemoteNavigationManager.cs (1)
80if (_navigationLockStateBeforeJsRuntimeAttached.HasValue)
Circuits\ServerComponentDeserializer.cs (1)
174if (_currentInvocationId.HasValue)
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (2)
133if (!key.HasValue) 182if (!newKey.HasValue)
Microsoft.AspNetCore.Components.WebAssembly (2)
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (2)
133if (!key.HasValue) 182if (!newKey.HasValue)
Microsoft.AspNetCore.Components.WebView (1)
WebViewManager.cs (1)
130if (_currentPageContext != null && rootComponent.ComponentId.HasValue)
Microsoft.AspNetCore.CookiePolicy (2)
ResponseCookiesWrapper.cs (2)
39if (!_isConsentNeeded.HasValue) 54if (!_hasConsent.HasValue)
Microsoft.AspNetCore.Cors (4)
Infrastructure\CorsPolicy.cs (1)
156builder.Append(PreflightMaxAge.HasValue ?
Infrastructure\CorsPolicyBuilder.cs (1)
253if (policy.PreflightMaxAge.HasValue)
Infrastructure\CorsResult.cs (1)
88builder.Append(PreflightMaxAge.HasValue ?
Infrastructure\CorsService.cs (1)
188if (result.PreflightMaxAge.HasValue)
Microsoft.AspNetCore.DataProtection (6)
Internal\KeyManagementOptionsSetup.cs (1)
50if (context.DefaultKeyLifetime.HasValue)
KeyManagement\XmlKeyManager.cs (2)
225if (!mostRecentMassRevocationDate.HasValue || mostRecentMassRevocationDate < thisMassRevocationDate) 259if (mostRecentMassRevocationDate.HasValue)
Repositories\EphemeralXmlRepository.cs (1)
77.Where(e => e.DeletionOrder.HasValue)
Repositories\FileSystemXmlRepository.cs (1)
196.Where(e => e.DeletionOrder.HasValue)
Repositories\RegistryXmlRepository.cs (1)
178.Where(e => e.DeletionOrder.HasValue)
Microsoft.AspNetCore.Diagnostics (3)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
150if (scope.HasValue)
StatusCodePage\StatusCodePagesExtensions.cs (1)
247if (scope.HasValue)
StatusCodePage\StatusCodePagesMiddleware.cs (1)
76|| context.Response.ContentLength.HasValue
Microsoft.AspNetCore.HeaderParsing (1)
HostHeaderValue.cs (1)
114if (Port.HasValue)
Microsoft.AspNetCore.Hosting (1)
Internal\HostingTelemetryHelpers.cs (1)
50if (host.Port.HasValue)
Microsoft.AspNetCore.Http (7)
Features\FormFeature.cs (1)
265if (section.BaseStreamOffset.HasValue)
HeaderDictionary.cs (1)
137if (value.HasValue)
parent\parent\Shared\StreamCopyOperationInternal.cs (4)
41Debug.Assert(!bytesRemaining.HasValue || bytesRemaining.GetValueOrDefault() >= 0); 47if (bytesRemaining.HasValue && bytesRemaining.GetValueOrDefault() <= 0) 55if (bytesRemaining.HasValue) 61if (bytesRemaining.HasValue)
SendFileFallback.cs (1)
30if (count.HasValue &&
Microsoft.AspNetCore.Http.Abstractions (2)
CookieBuilder.cs (1)
118Expires = Expiration.HasValue ? expiresFrom.Add(Expiration.GetValueOrDefault()) : default(DateTimeOffset?)
Internal\ParsingHelpers.cs (1)
92if (!values.HasValue || StringValues.IsNullOrEmpty(values.GetValueOrDefault()))
Microsoft.AspNetCore.Http.Connections (3)
Internal\HttpConnectionDispatcher.cs (2)
231if (tokenLifetimeSeconds.HasValue) 581if (expiresUtc.HasValue && expiresUtc.Value != DateTimeOffset.MaxValue)
Internal\HttpConnectionManager.cs (1)
155if (!Debugger.IsAttached && lastSeenTick.HasValue && (ticks - lastSeenTick.Value) > _disconnectTimeout)
Microsoft.AspNetCore.Http.Extensions (5)
HeaderDictionaryTypeExtensions.cs (1)
125if (value.HasValue)
parent\parent\Shared\StreamCopyOperationInternal.cs (4)
41Debug.Assert(!bytesRemaining.HasValue || bytesRemaining.GetValueOrDefault() >= 0); 47if (bytesRemaining.HasValue && bytesRemaining.GetValueOrDefault() <= 0) 55if (bytesRemaining.HasValue) 61if (bytesRemaining.HasValue)
Microsoft.AspNetCore.Http.Results (16)
parent\parent\Shared\StreamCopyOperationInternal.cs (4)
41Debug.Assert(!bytesRemaining.HasValue || bytesRemaining.GetValueOrDefault() >= 0); 47if (bytesRemaining.HasValue && bytesRemaining.GetValueOrDefault() <= 0) 55if (bytesRemaining.HasValue) 61if (bytesRemaining.HasValue)
src\aspnetcore\src\Shared\RangeHelper\RangeHelper.cs (3)
100if (start.HasValue) 107if (!end.HasValue || end.Value >= length) 112else if (end.HasValue)
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (9)
104if (lastModified.HasValue) 129if (fileLength.HasValue) 176if (ifRange.LastModified.HasValue) 178if (lastModified.HasValue && lastModified > ifRange.LastModified) 238if (lastModified.HasValue && ifModifiedSince.HasValue && ifModifiedSince <= now) 246if (lastModified.HasValue && ifUnmodifiedSince.HasValue && ifUnmodifiedSince <= now) 361if (lastModified.HasValue)
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersMiddleware.cs (1)
178if (_options.ForwardLimit.HasValue && entryCount > _options.ForwardLimit)
Microsoft.AspNetCore.HttpsPolicy (4)
HttpsRedirectionMiddleware.cs (4)
46if (httpsRedirectionOptions.HttpsPort.HasValue) 128if (nullablePort.HasValue) 147if (nullablePort.HasValue && nullablePort != bindingAddress.Port) 160if (nullablePort.HasValue)
Microsoft.AspNetCore.Identity (2)
Passkeys\AttestationObject.cs (2)
99if (!attestationStatement.HasValue) 104if (!authenticatorData.HasValue)
Microsoft.AspNetCore.InternalTesting (2)
AssemblyTestLog.cs (1)
336_logStart.HasValue
Logging\XunitLoggerProvider.cs (1)
72var timestamp = _logStart.HasValue ?
Microsoft.AspNetCore.Mvc.Abstractions (4)
ModelBinding\Metadata\ModelMetadataIdentity.cs (1)
175return other.HasValue && Equals(other.Value);
ModelBinding\ModelMetadata.cs (2)
553if (!_isParseableType.HasValue) 576if (!_isConvertibleType.HasValue)
ModelBinding\ValueProviderResult.cs (1)
91return other.HasValue && Equals(other.Value);
Microsoft.AspNetCore.Mvc.Core (26)
ModelBinding\DefaultModelBindingContext.cs (1)
171if (!_maxModelBindingRecursionDepth.HasValue)
ModelBinding\Metadata\DefaultModelMetadata.cs (9)
266if (!_isBindingRequired.HasValue) 293if (!_isReadOnly.HasValue) 299else if (BindingMetadata.IsReadOnly.HasValue) 318if (!_isRequired.HasValue) 320if (ValidationMetadata.IsRequired.HasValue) 421if (!_validateChildren.HasValue) 423if (ValidationMetadata.ValidateChildren.HasValue) 446if (!_hasValidators.HasValue) 475if (defaultModelMetadata._hasValidators.HasValue)
ModelBinding\ModelBindingHelper.cs (1)
583return capacity.HasValue ? new List<T>(capacity.Value) : new List<T>();
ObjectResult.cs (1)
85if (StatusCode.HasValue)
RequireHttpsAttribute.cs (1)
77if (optionsAccessor.Value.SslPort.HasValue && optionsAccessor.Value.SslPort > 0)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
166if (!ChunkSize.HasValue || ChunkSize.Value > templateLength + value.Length)
src\aspnetcore\src\Shared\RangeHelper\RangeHelper.cs (3)
100if (start.HasValue) 107if (!end.HasValue || end.Value >= length) 112else if (end.HasValue)
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (9)
104if (lastModified.HasValue) 129if (fileLength.HasValue) 176if (ifRange.LastModified.HasValue) 178if (lastModified.HasValue && lastModified > ifRange.LastModified) 238if (lastModified.HasValue && ifModifiedSince.HasValue && ifModifiedSince <= now) 246if (lastModified.HasValue && ifUnmodifiedSince.HasValue && ifUnmodifiedSince <= now) 361if (lastModified.HasValue)
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
ProblemDetailsWrapper.cs (1)
131if (ProblemDetails.Status.HasValue)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
CSharpCompiler.cs (3)
177if (dependencyContextOptions.AllowUnsafe.HasValue) 184if (dependencyContextOptions.Optimize.HasValue) 198if (dependencyContextOptions.WarningsAsErrors.HasValue)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\CacheTagKey.cs (1)
239if (_hashcode.HasValue)
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
228if (_kestrelPort.HasValue)
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
DefaultDisplayTemplates.cs (1)
66new SelectListItem(Resources.Common_TriState_NotSet, string.Empty, !value.HasValue),
DefaultHtmlGenerator.cs (10)
199Debug.Assert(!isChecked.HasValue); 211if (isChecked.HasValue && htmlAttributeDictionary != null) 224useViewData: (modelExplorer == null && !isChecked.HasValue), 437if (!isChecked.HasValue && 454Debug.Assert(!isChecked.HasValue); 465if (isChecked.HasValue && htmlAttributeDictionary != null) 1201if (modelStateWasChecked.HasValue) 1341if (attribute is MaxLengthAttribute maxLengthAttribute && (!maxLengthValue.HasValue || maxLengthValue.Value > maxLengthAttribute.Length)) 1345else if (attribute is StringLengthAttribute stringLengthAttribute && (!maxLengthValue.HasValue || maxLengthValue.Value > stringLengthAttribute.MaximumLength)) 1351if (maxLengthValue.HasValue)
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
635schemaType = schemaType.HasValue ? (schemaType | type) : type;
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheMiddleware.cs (1)
432if (!contentLength.HasValue || contentLength == cachedResponseBody.Length
Microsoft.AspNetCore.Owin (1)
DictionaryStringValuesWrapper.cs (1)
66if (value.HasValue)
Microsoft.AspNetCore.ResponseCaching (13)
ResponseCachingMiddleware.cs (3)
334if (!context.ResponseDate.HasValue) 378if (!contentLength.HasValue || contentLength == cachedResponseBody.Length 384if (!response.ContentLength.HasValue && StringValues.IsNullOrEmpty(response.Headers.TransferEncoding))
ResponseCachingPolicyProvider.cs (10)
135if (!context.ResponseDate.HasValue) 137if (!context.ResponseSharedMaxAge.HasValue && 138!context.ResponseMaxAge.HasValue && 155else if (!context.ResponseSharedMaxAge.HasValue) 163else if (!context.ResponseMaxAge.HasValue) 201else if (!cachedSharedMaxAge.HasValue) 226if (maxStaleExist && !requestMaxStale.HasValue) 233if (requestMaxStale.HasValue && age - lowestMaxAge < requestMaxStale) 242else if (!cachedMaxAge.HasValue && !requestMaxAge.HasValue)
Microsoft.AspNetCore.Rewrite (2)
ParserContext.cs (1)
51if (_mark.HasValue)
RedirectToHttpsRule.cs (1)
21if (SSLPort.HasValue && (port = SSLPort.GetValueOrDefault()) > 0)
Microsoft.AspNetCore.Routing (4)
EndpointRoutingMiddleware.cs (2)
220if (shortCircuitAttribute.StatusCode.HasValue) 364if (maxRequestBodySize.HasValue)
Patterns\RoutePatternParser.cs (2)
534if (_mark.HasValue) 552else if (_mark.HasValue)
Microsoft.AspNetCore.Server.HttpSys (30)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvoke.HTTPAPI.dll.g.cs (7)
136 uint __result = PInvoke.HttpCreateRequestQueue(Version, NameLocal, SecurityAttributes.HasValue ? &SecurityAttributesLocal : null, Flags, &RequestQueueHandleLocal); 531 uint __result = PInvoke.HttpSendHttpResponse(RequestQueueHandleLocal, RequestId, Flags, HttpResponseLocal, CachePolicy.HasValue ? &CachePolicyLocal : null, BytesSentLocal, default, default, Overlapped, LogData.HasValue ? &LogDataLocal : null); 562 uint __result = PInvoke.HttpSendHttpResponse(RequestQueueHandleLocal, RequestId, Flags, HttpResponseLocal, CachePolicy.HasValue ? &CachePolicyLocal : null, default(uint* ), default, default, Overlapped, LogData.HasValue ? &LogDataLocal : null); 641 uint __result = PInvoke.HttpSendResponseEntityBody(RequestQueueHandleLocal, RequestId, Flags, (ushort )EntityChunks.Length, EntityChunksLocal, BytesSentLocal, default, default, Overlapped, LogData.HasValue ? &LogDataLocal : null); 671 uint __result = PInvoke.HttpSendResponseEntityBody(RequestQueueHandleLocal, RequestId, Flags, (ushort )EntityChunks.Length, EntityChunksLocal, default(uint* ), default, default, Overlapped, LogData.HasValue ? &LogDataLocal : null);
HttpSysOptions.cs (3)
148if (value.HasValue && value < -1) 153if (value.HasValue && _urlGroup != null) 274if (_maxConnections.HasValue)
RequestProcessing\Request.cs (1)
293return (ContentLength.HasValue && ContentLength.Value > 0 && _contentBoundaryType == BoundaryType.ContentLength)
RequestProcessing\RequestContext.cs (1)
47if (!_disconnectToken.HasValue)
RequestProcessing\RequestContext.FeatureCollection.cs (2)
731if (cacheControl.SharedMaxAge.HasValue) 735else if (cacheControl.MaxAge.HasValue)
RequestProcessing\RequestStream.cs (4)
53if (value.HasValue && value < 0) 313if (contentLength.HasValue && _maxSize.HasValue && contentLength.Value > _maxSize.Value) 332if (_maxSize.HasValue && _totalRead > _maxSize.Value)
RequestProcessing\Response.cs (2)
330if (_cacheTtl.HasValue && _cacheTtl.Value > TimeSpan.Zero) 437if (responseContentLength.HasValue)
RequestProcessing\ResponseBody.cs (1)
639if (!count.HasValue)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
205Debug.Assert(_memoryHandle.HasValue);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
146if (value.HasValue)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
201if (value.HasValue)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (4)
108if (!byte1.HasValue) 169if (!nextByte.HasValue) 276if (!value1.HasValue) 282if (!value2.HasValue)
UrlPrefix.cs (1)
73if (!portValue.HasValue)
UrlPrefixCollection.cs (1)
159if (id.HasValue)
Microsoft.AspNetCore.Server.IIS (9)
Core\IISHttpContext.IHttpRequestLifetimeFeature.cs (1)
21if (_manuallySetRequestAbortToken.HasValue)
Core\IISHttpServer.cs (1)
50if (!_websocketAvailable.HasValue)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
205Debug.Assert(_memoryHandle.HasValue);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
146if (value.HasValue)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
201if (value.HasValue)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (4)
108if (!byte1.HasValue) 169if (!nextByte.HasValue) 276if (!value1.HasValue) 282if (!value2.HasValue)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
src\aspnetcore\src\Shared\Process\ProcessEx.cs (1)
207if (!timeSpan.HasValue)
Microsoft.AspNetCore.Server.Kestrel.Core (66)
BadHttpRequestException.cs (1)
25if (requiredMethod.HasValue)
Internal\ConfigurationReader.cs (2)
218if (endpoint.ClientCertificateMode.HasValue) 223if (endpoint.SslProtocols.HasValue)
Internal\Http\Http1MessageBody.cs (2)
185if (headers.ContentLength.HasValue) 210if (headers.ContentLength.HasValue)
Internal\Http\HttpHeaders.cs (1)
37if (value.HasValue && value.Value < 0)
Internal\Http\HttpHeaders.Generated.cs (23)
584if (_contentLength.HasValue) 2586return (_contentLength.HasValue ? 1 : 0 ) + BitOperations.PopCount((ulong)_bits) + (MaybeUnknown?.Count ?? 0); 3333if (_contentLength.HasValue) 3352if (_contentLength.HasValue) 5124if (!_contentLength.HasValue) 5144if (!_contentLength.HasValue) 6231if (_contentLength.HasValue) 6251if (_contentLength.HasValue) 7463if (_contentLength.HasValue) 8669_next = _collection._contentLength.HasValue ? 49 : -1; 8801if (_contentLength.HasValue) 10872return (_contentLength.HasValue ? 1 : 0 ) + BitOperations.PopCount((ulong)_bits) + (MaybeUnknown?.Count ?? 0); 11384if (_contentLength.HasValue) 11394if (_contentLength.HasValue) 12830if (!_contentLength.HasValue) 12840if (!_contentLength.HasValue) 13722if (_contentLength.HasValue) 13732if (_contentLength.HasValue) 14790if (_contentLength.HasValue) 14816if (_contentLength.HasValue) 15505_next = _collection._contentLength.HasValue ? 38 : -1; 17169return (_contentLength.HasValue ? 1 : 0 ) + BitOperations.PopCount((ulong)_bits) + (MaybeUnknown?.Count ?? 0); 17558if (_contentLength.HasValue)
Internal\Http\HttpProtocol.cs (6)
299if (_manuallySetRequestAbortToken.HasValue) 892responseHeaders.ContentLength.HasValue && 927responseHeaders.ContentLength.HasValue && 941responseHeaders.ContentLength.HasValue && 1195else if (responseHeaders.ContentLength.HasValue) 1223else if (!hasTransferEncoding && !responseHeaders.ContentLength.HasValue)
Internal\Http\HttpRequestHeaders.cs (4)
96if (_contentLength.HasValue) 121if (_contentLength.HasValue) 255_next = GetNext(_currentBits, collection.ContentLength.HasValue); 274_next = GetNext(_currentBits, _collection.ContentLength.HasValue);
Internal\Http\HttpResponseHeaders.cs (2)
154_next = GetNext(_currentBits, collection.ContentLength.HasValue); 176_next = GetNext(_currentBits, _collection.ContentLength.HasValue);
Internal\Http2\Http2Stream.cs (2)
499if (InputRemaining.HasValue) 544if (InputRemaining.HasValue)
Internal\Http3\Http3PendingStream.cs (1)
65if (!advanceOn.HasValue || value == (long)advanceOn)
Internal\Http3\Http3Stream.cs (2)
821if (InputRemaining.HasValue) 993if (InputRemaining.HasValue)
Internal\Infrastructure\ConnectionManager.cs (1)
90=> number.HasValue
Internal\KestrelServerImpl.cs (4)
417if (Options.Limits.MaxRequestBufferSize.HasValue && 424if (Options.Limits.MaxRequestBufferSize.HasValue && 434if (!connectionLimit.HasValue) 444if (!connectionLimit.HasValue)
KestrelConfigurationLoader.cs (4)
243if (defaults.Protocols.HasValue) 255if (defaults.SslProtocols.HasValue) 260if (defaults.ClientCertificateMode.HasValue) 372if (endpoint.Protocols.HasValue)
KestrelServerLimits.cs (4)
61if (value.HasValue && value.Value < 0) 81if (value.HasValue && value.Value <= 0) 225if (value.HasValue && value <= 0) 251if (value.HasValue && value < 0)
KestrelServerOptions.cs (2)
233if (!_enableWebTransportAndH3Datagrams.HasValue) 254if (!_disableHttp1LineFeedTerminators.HasValue)
ListenOptionsHttpsExtensions.cs (1)
308if (timeout.HasValue)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
205Debug.Assert(_memoryHandle.HasValue);
src\aspnetcore\src\Shared\ServerInfrastructure\Http2\Http2Frame.Data.cs (1)
37DataFlags = padLength.HasValue ? Http2DataFrameFlags.PADDED : Http2DataFrameFlags.NONE;
TlsConfigurationLoader.cs (2)
52if (endpoint.SslProtocols.HasValue) 62if (endpoint.ClientCertificateMode.HasValue)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
205Debug.Assert(_memoryHandle.HasValue);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
205Debug.Assert(_memoryHandle.HasValue);
Microsoft.AspNetCore.Session (3)
EncodedKey.cs (3)
51if (_hashCode.HasValue && otherKey._hashCode.HasValue 68if (!_hashCode.HasValue)
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubActivator.cs (2)
24Debug.Assert(!_created.HasValue, "hub activators must not be reused."); 41Debug.Assert(_created.HasValue, "hubs must be released with the hub activator they were created");
Microsoft.AspNetCore.StaticAssets (8)
Development\StaticAssetDevelopmentRuntimeHandler.cs (2)
218if (offset >= fileInfo.Length || (count.HasValue && offset + count.Value > fileInfo.Length)) 228var actualCount = count.HasValue ? Math.Min(count.Value, fileInfo.Length - offset) : fileInfo.Length - offset;
src\aspnetcore\src\Shared\RangeHelper\RangeHelper.cs (3)
100if (start.HasValue) 107if (!end.HasValue || end.Value >= length) 112else if (end.HasValue)
StaticAssetsInvoker.cs (3)
345if (ifModifiedSince.HasValue && ifModifiedSince <= now) 354if (ifUnmodifiedSince.HasValue && ifUnmodifiedSince <= now) 374if (ifRangeHeader.LastModified.HasValue)
Microsoft.AspNetCore.StaticFiles (6)
src\aspnetcore\src\Shared\RangeHelper\RangeHelper.cs (3)
100if (start.HasValue) 107if (!end.HasValue || end.Value >= length) 112else if (end.HasValue)
StaticFileContext.cs (3)
185if (ifModifiedSince.HasValue && ifModifiedSince <= now) 193if (ifUnmodifiedSince.HasValue && ifUnmodifiedSince <= now) 211if (ifRangeHeader.LastModified.HasValue)
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
128if (!contentLength.HasValue && request.Version == HttpVersion.Version11)
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\ResponseStreamWrapper.cs (1)
97if (_isHtmlResponse.HasValue)
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
159if (advancedAcceptContext.KeepAliveInterval.HasValue)
Microsoft.AspNetCore.WebUtilities (6)
FileBufferingReadStream.cs (2)
269if (_bufferLimit.HasValue && _bufferLimit - read < _buffer.Length) 346if (_bufferLimit.HasValue && _bufferLimit - read < _buffer.Length)
FileBufferingWriteStream.cs (2)
112if (_bufferLimit.HasValue && _bufferLimit - Length < count) 151if (_bufferLimit.HasValue && _bufferLimit - Length < buffer.Length)
MultipartReaderStream.cs (1)
148if (LengthLimit.HasValue &&
StreamHelperExtensions.cs (1)
67if (limit.HasValue && limit.GetValueOrDefault() - total < read)
Microsoft.Build (43)
BackEnd\BuildManager\BuildManager.cs (1)
3126if (flags.HasValue && flags.Value.HasFlag(BuildRequestDataFlags.ClearCachesAfterBuild))
BackEnd\Client\MSBuildClient.cs (1)
648Debug.Assert(KnownTelemetry.PartialBuildTelemetry == null || KnownTelemetry.PartialBuildTelemetry.StartAt.HasValue, "BuildTelemetry.StartAt was not initialized!");
BackEnd\Components\Communications\LogMessagePacket.cs (3)
121bool hasValue = result.HasValue; 145bool lineHasValue = evaluationLocation.Line.HasValue; 148bool parentIdHasValue = evaluationLocation.ParentId.HasValue;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (4)
502bool shouldFilterByNodeMode = expectedNodeMode.HasValue && ChangeWaves.AreFeaturesEnabled(ChangeWaves.Wave18_5); 621if (processNodeMode.HasValue && processNodeMode.Value == expectedNodeMode) 771if (expectedNodeMode.HasValue && ChangeWaves.AreFeaturesEnabled(ChangeWaves.Wave18_5)) 791if (processNodeMode.HasValue && processNodeMode.Value == expectedNodeMode.Value)
BackEnd\Components\Logging\LoggingService.cs (1)
606if (escapeHatch.HasValue)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
383if (!_isTraversalProject.HasValue)
BuildCheck\API\CheckConfiguration.cs (1)
54if (Severity.HasValue && Severity.Value != CheckResultSeverity.Default)
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
44_isVerboseEnvVarOutput = isVerboseEnvVarOutput.HasValue && isVerboseEnvVarOutput.Value;
BuildCheck\Checks\PropertiesUsageCheck.cs (4)
78if (allowUninitPropsInConditionsRule1.HasValue && 79allowUninitPropsInConditionsRule2.HasValue && 86if (allowUninitPropsInConditionsRule1.HasValue || allowUninitPropsInConditionsRule2.HasValue)
Construction\ProjectItemElement.cs (1)
347if (!_includeHasWildcards.HasValue)
ElementLocation\XmlDocumentWithLocation.cs (4)
240if (_loadAsReadOnly.HasValue && _loadAsReadOnly.Value) 256if (_loadAsReadOnly.HasValue && _loadAsReadOnly.Value) 281if (_loadAsReadOnly.HasValue && _loadAsReadOnly.Value) 409ErrorUtilities.VerifyThrowInvalidOperation(!_loadAsReadOnly.HasValue || !_loadAsReadOnly.Value, "OM_CannotSaveFileLoadedAsReadOnly", _fullPath);
Evaluation\Conditionals\StringExpressionNode.cs (1)
177if (!_shouldBeTreatedAsVisualStudioVersion.HasValue)
Evaluation\Expander.cs (1)
594if (argumentStartIndex.HasValue)
Evaluation\Expander.Function.cs (1)
444if (resolved.HasValue)
Evaluation\Expander\WellKnownFunctions.cs (1)
898if (result.HasValue)
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
164if (!matcher.HasValue)
Logging\BinaryLogger\BuildEventArgsWriter.cs (8)
357Write(logger.Verbosity.HasValue); 358if (logger.Verbosity.HasValue) 413Write(result.HasValue); 414if (result.HasValue) 1536Write(item.Line.HasValue); 1537if (item.Line.HasValue) 1543Write(item.ParentId.HasValue); 1544if (item.ParentId.HasValue)
Logging\BinaryLogger\Postprocessing\TransparentReadStream.cs (1)
58set { _maxAllowedPosition = value.HasValue ? _position + value.Value : long.MaxValue; }
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
243if (entryCreationStamp.HasValue)
Logging\ParallelLogger\ParallelConsoleLogger.cs (2)
1156if ((_showCommandLine.HasValue && !_showCommandLine.Value) || (!_showCommandLine.HasValue && !IsVerbosityAtLeast(LoggerVerbosity.Normal)))
Logging\ProfilerLogger.cs (3)
196if (pairToMerge.Key.ParentId.HasValue && mergeMap.TryGetValue(pairToMerge.Key.ParentId.Value, out mergedParent)) 244if (!parentId.HasValue) 254Debug.Assert(pair.Key.ParentId.HasValue,
parent\Shared\TaskHostConfiguration.cs (1)
557if (translator.NegotiatedPacketVersion.HasValue && translator.NegotiatedPacketVersion is 0 or >= 2)
Microsoft.Build.Framework (12)
BinaryTranslator.cs (1)
1085bool hasTaskHostFactory = value.TaskHostFactoryExplicitlyRequested.HasValue;
BuildEventArgs.cs (1)
103if (!_localTimestamp.HasValue)
LoggersRegisteredEventArgs.cs (2)
104writer.Write(logger.Verbosity.HasValue); 105if (logger.Verbosity.HasValue)
Telemetry\BuildTelemetry.cs (8)
177if (StartAt.HasValue && FinishedAt.HasValue) 182if (InnerStartAt.HasValue && FinishedAt.HasValue) 233if (StartAt.HasValue && FinishedAt.HasValue) 239if (InnerStartAt.HasValue && FinishedAt.HasValue)
Microsoft.Build.Tasks.Core (19)
AssemblyDependency\Reference.cs (2)
1098if (!primaryReference.FoundInGac.HasValue) 1130if (!FoundInGac.HasValue)
CommandLineBuilderExtension.cs (2)
82if (value.HasValue) 301if (value.HasValue && value.Value)
Copy.cs (1)
1012if (result.HasValue)
DownloadFile.cs (1)
358&& response.Content.Headers.LastModified.HasValue
GenerateDeploymentManifest.cs (10)
39if (!_createDesktopShortcut.HasValue) 201if (_install.HasValue) 206if (_updateEnabled.HasValue) 211if (_updateInterval.HasValue) 216if (_updateMode.HasValue) 221if (_updateUnit.HasValue) 233if (_disallowUrlActivation.HasValue) 239if (_mapFileExtensions.HasValue) 244if (_trustUrlParameters.HasValue) 249if (_createDesktopShortcut.HasValue)
GenerateResource.cs (1)
3452if (_haveSystemResourcesExtensionsReference.HasValue)
RequiresFramework35SP1Assembly.cs (1)
46if (!_createDesktopShortcut.HasValue)
WriteCodeFragment.cs (1)
261if (!orderedParameters[i].HasValue)
Microsoft.CodeAnalysis (56)
CodeGen\SequencePointList.cs (1)
119if (!firstReal.HasValue)
CommandLine\CommonCompiler.cs (1)
964if (cachedExitCode.HasValue)
CommandLine\SarifV2ErrorLogger.cs (2)
402if (!reportDiagnostic.HasValue) 478if (info.HasValue && descriptorInfoWithIndex.Info != info)
Compilation.EmitStream.cs (1)
169RoslynDebug.Assert(_emitStreamSignKind != EmitStreamSignKind.SignedWithFile || _tempInfo.HasValue);
Diagnostic\Diagnostic.cs (1)
524return !filterSpan.HasValue || filterSpan.GetValueOrDefault().IntersectsWith(location.SourceSpan);
DiagnosticAnalyzer\AnalysisContextInfo.cs (3)
93if (_file.HasValue) 108RoslynDebug.Assert(_file.HasValue); 115sb.AppendLine($"{nameof(SyntaxNode)}: {GetFlattenedNodeText(_node)} [{_node.GetType().Name}]@{_node.Span} {(lineSpan.HasValue ? lineSpan.Value.ToString() : string.Empty)}");
DiagnosticAnalyzer\AnalysisResultBuilder.cs (5)
166var completedAnalyzersForFile = filterScope.HasValue 216if (analysisScope.FilterFileOpt.HasValue) 224else if (!analysisScope.FilterSpanOpt.HasValue && !analysisScope.OriginalFilterSpan.HasValue) 257Debug.Assert(!analysisScope.FilterSpanOpt.HasValue);
DiagnosticAnalyzer\AnalysisScope.cs (12)
141Debug.Assert(!isSyntacticSingleFileAnalysis || filterFile.HasValue); 159Debug.Assert(!filterSpan.HasValue || filterFile.HasValue); 161if (filterSpan.HasValue && filterFile.GetValueOrDefault().SourceTree != null) 163Debug.Assert(filterFile.HasValue); 227return !FilterFileOpt.HasValue || FilterFileOpt.GetValueOrDefault().SourceTree == tree; 232return !FilterFileOpt.HasValue || FilterFileOpt.GetValueOrDefault().AdditionalFile == file; 240if (!FilterFileOpt.HasValue) 268if (!FilterFileOpt.HasValue) 283return !FilterSpanOpt.HasValue || FilterSpanOpt.GetValueOrDefault().IntersectsWith(filterSpan); 288return !FilterSpanOpt.HasValue || FilterSpanOpt.GetValueOrDefault().Contains(filterSpan); 293if (!FilterFileOpt.HasValue)
DiagnosticAnalyzer\AnalyzerDriver.cs (4)
226Debug.Assert(_lazyTreatAllCodeAsNonGeneratedCode.HasValue); 1686case CompilationUnitCompletedEvent compilationUnitCompletedEvent when !compilationUnitCompletedEvent.FilterSpan.HasValue: 2352Debug.Assert(_lazyDoNotAnalyzeGeneratedCode.HasValue); 2582bool isPartialDeclAnalysis = analysisScope.FilterSpanOpt.HasValue && !analysisScope.ContainsSpan(topmostNodeForAnalysis.FullSpan);
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (1)
117(!FilterSpanForLocalDiagnostics.HasValue || FilterSpanForLocalDiagnostics.Value.IntersectsWith(diagnostic.Location.SourceSpan)))
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
451Debug.Assert(!filterSpan.HasValue || filterTree != null); 576Debug.Assert(!filterSpan.HasValue || filterTree != null);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (4)
959compilationEvents = compilationEvents.WhereAsArray(e => e is not CompilationUnitCompletedEvent c || !c.FilterSpan.HasValue); 960Debug.Assert(compilationEvents.Count(e => e is CompilationUnitCompletedEvent c && !c.FilterSpan.HasValue) == 1); 974(SourceOrAdditionalFile file, bool syntax)? filterScope = analysisScope.FilterFileOpt.HasValue ? 1060var needsSpanBasedCompilationUnitCompletedEvent = analysisScope.FilterSpanOpt.HasValue;
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (2)
838Debug.Assert(!filterSpan.HasValue || filterTree != null); 918Debug.Assert(!filterSpan.HasValue || filterTree != null);
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
116if (segmentIsNamedTypeName.HasValue) 393if (bindingContext != null && result.HasValue && !result.Value.IsBound)
Emit\EditAndContinue\DefinitionMap.cs (4)
632if (!WellKnownGeneratedNames.TryParseDebugIds(memberName.AsSpan(suffixIndex), idSeparator, isMethodIdOptional: containingDisplayClassId.HasValue, out parsedMethodId, out parsedEntityId)) 638if (!containingDisplayClassId.HasValue && parsedMethodId != methodId) 648Debug.Assert(!containingDisplayClassId.HasValue); 672Debug.Assert(containingDisplayClassId.HasValue);
Emit\EditAndContinue\DeletedMethodBody.cs (1)
75if (rudeEdit.HasValue)
MetadataReference\AssemblyIdentityComparer.cs (1)
97if (eq.HasValue)
PEWriter\SigningUtilities.cs (2)
47if (assembly == null && !privateKey.HasValue) 65if (keySize == 0 && privateKey.HasValue)
SourceGeneration\Nodes\NodeStateTable.cs (2)
745if (!_currentState.HasValue) 768Debug.Assert(_currentState.HasValue, "Created a builder with no values?");
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
171if (!attributes.HasValue)
Symbols\Attributes\CommonAssemblyWellKnownAttributeData.cs (1)
361return _runtimeCompatibilityWrapNonExceptionThrows.HasValue;
Symbols\PlatformInvokeInformation.cs (2)
221if (throwOnUnmappable.HasValue) 233if (useBestFit.HasValue)
Syntax\LineMapping.cs (1)
66if (CharacterOffset.HasValue)
Microsoft.CodeAnalysis.Analyzers (32)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (1)
347if (oldRule.HasValue)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (1)
369RoslynDebug.Assert(currentTableKind.HasValue);
MetaAnalyzers\ReleaseTrackingHelper.cs (2)
195if (invalidEntryKind.HasValue) 205if (invalidEntryKind.HasValue)
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
119reuseInfoOpt.HasValue && 186if (!map.TryGetValue(document.Id, out var reuseInfoOpt) || !reuseInfoOpt.HasValue)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (2)
43Debug.Assert(depthOfInheritance.HasValue == (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace || symbol.Kind == SymbolKind.NamedType)); 160if (DepthOfInheritance.HasValue)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
173if (!effectiveSeverity.HasValue) 223return overriddenSeverity.HasValue ? overriddenSeverity.Value.ToDiagnosticSeverity() : rule.DefaultSeverity;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (3)
14=> !contextFilterSpan.HasValue || span.IntersectsWith(contextFilterSpan.Value); 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 178Contract.ThrowIfFalse(context.FilterSpan.HasValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
154if (providerAndTree.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SourceTextExtensions_SharedWithCodeStyle.cs (1)
22if (!linePosition.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (3)
50return firstOffset.HasValue 61return lastOffset.HasValue && lastOffset.Value < lineText.Length 195if (firstNonWhitespaceChar.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (4)
33Debug.Assert(valueUsageInfoOpt.HasValue ^ typeOrNamespaceUsageInfoOpt.HasValue); 46=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsReadFrom(); 49=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsWrittenTo();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
787return span.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
241if (isUserConfiguredGeneratedCode.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
34return firstNonWhitespaceOffset.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
30if (span.HasValue && !HasImportThatIntersectsWithSpan(span.Value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
26severity.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
26capitalization.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
112if (accessibility.HasValue && !ApplicableAccessibilityList.Any(static (k, accessibility) => k == accessibility, accessibility))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (2)
46if (result.HasValue) 91if (result.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
244if (desiredIndex.HasValue)
Microsoft.CodeAnalysis.AnalyzerUtilities (40)
src\1e7e9f16bf7f1945\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (1)
82entity.CaptureId.HasValue &&
src\66dd3055a1c91c38\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (1)
199entity.CaptureId.HasValue &&
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (2)
43Debug.Assert(depthOfInheritance.HasValue == (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace || symbol.Kind == SymbolKind.NamedType)); 160if (DepthOfInheritance.HasValue)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
173if (!effectiveSeverity.HasValue) 223return overriddenSeverity.HasValue ? overriddenSeverity.Value.ToDiagnosticSeverity() : rule.DefaultSeverity;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysis.CopyDataFlowOperationVisitor.cs (4)
157Debug.Assert(ReferenceEquals(sourceCopyAnalysisData, targetCopyAnalysisData) || fromPredicateKind.HasValue); 175if (!fromPredicateKind.HasValue && 216if (fromPredicateKind.HasValue) 475if (returnValueAndPredicateKind.HasValue &&
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntity.cs (2)
50Debug.Assert(symbol != null || !indices.IsEmpty || instanceReferenceOperationSyntax != null || captureId.HasValue); 214public bool IsLValueFlowCaptureEntity => CaptureId.HasValue && CaptureId.Value.IsLValueFlowCapture;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (3)
505if (invocationInstance.HasValue) 511if (thisOrMeInstanceForCaller.HasValue) 694entity.CaptureId.HasValue &&
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (3)
311if (analysisContext.InterproceduralAnalysisData?.InvocationInstance.HasValue == true) 387if (!mergedPredicateValueKind.HasValue) 2353RoslynDebug.Assert(invokedMethod.ReturnsVoid == !analysisResult.ReturnValueAndPredicateKind.HasValue);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralAnalysisData.cs (1)
99if (instanceAndPointsToValue.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (3)
14=> !contextFilterSpan.HasValue || span.IntersectsWith(contextFilterSpan.Value); 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 178Contract.ThrowIfFalse(context.FilterSpan.HasValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
154if (providerAndTree.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SourceTextExtensions_SharedWithCodeStyle.cs (1)
22if (!linePosition.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (3)
50return firstOffset.HasValue 61return lastOffset.HasValue && lastOffset.Value < lineText.Length 195if (firstNonWhitespaceChar.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (4)
33Debug.Assert(valueUsageInfoOpt.HasValue ^ typeOrNamespaceUsageInfoOpt.HasValue); 46=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsReadFrom(); 49=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsWrittenTo();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
787return span.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
241if (isUserConfiguredGeneratedCode.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
34return firstNonWhitespaceOffset.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
30if (span.HasValue && !HasImportThatIntersectsWithSpan(span.Value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
26severity.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
26capitalization.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
112if (accessibility.HasValue && !ApplicableAccessibilityList.Any(static (k, accessibility) => k == accessibility, accessibility))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (2)
46if (result.HasValue) 91if (result.HasValue)
Microsoft.CodeAnalysis.CodeStyle (34)
src\4f5ad909b1ed0e10\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
83if (conditionName != nameof(Nullable<>.HasValue))
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
122if (context.FilterSpan.HasValue)
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
173if (notification.HasValue
src\roslyn\src\Analyzers\Core\Analyzers\Formatting\AbstractFormattingAnalyzer.cs (1)
51var span = context.FilterSpan.HasValue ? context.FilterSpan.GetValueOrDefault() : root.FullSpan;
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
179if (previous.HasValue)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (4)
283hasPragmaInAnalysisSpan = hasPragmaInAnalysisSpan || !span.HasValue || span.Value.OverlapsWith(trivia.Span); 439if (lazyIsUnhandledAnalyzer.HasValue && !lazyIsUnhandledAnalyzer.Value) 568if (lastEnablePragma.HasValue) 757if (span.HasValue && !node.FullSpan.Contains(span.Value))
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
268if (!completed.Value && !context.FilterSpan.HasValue)
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
198if (context.FilterSpan.HasValue)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
116if (segmentIsNamedTypeName.HasValue) 393if (bindingContext != null && result.HasValue && !result.Value.IsBound)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (3)
14=> !contextFilterSpan.HasValue || span.IntersectsWith(contextFilterSpan.Value); 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 178Contract.ThrowIfFalse(context.FilterSpan.HasValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
154if (providerAndTree.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SourceTextExtensions_SharedWithCodeStyle.cs (1)
22if (!linePosition.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (3)
50return firstOffset.HasValue 61return lastOffset.HasValue && lastOffset.Value < lineText.Length 195if (firstNonWhitespaceChar.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (4)
33Debug.Assert(valueUsageInfoOpt.HasValue ^ typeOrNamespaceUsageInfoOpt.HasValue); 46=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsReadFrom(); 49=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsWrittenTo();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
787return span.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
241if (isUserConfiguredGeneratedCode.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
34return firstNonWhitespaceOffset.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
30if (span.HasValue && !HasImportThatIntersectsWithSpan(span.Value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
26severity.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
26capitalization.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
112if (accessibility.HasValue && !ApplicableAccessibilityList.Any(static (k, accessibility) => k == accessibility, accessibility))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (2)
46if (result.HasValue) 91if (result.HasValue)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
119reuseInfoOpt.HasValue && 186if (!map.TryGetValue(document.Id, out var reuseInfoOpt) || !reuseInfoOpt.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
244if (desiredIndex.HasValue)
Microsoft.CodeAnalysis.CSharp (78)
Binder\Binder_Attributes.cs (1)
797if (kv.HasValue)
Binder\Binder_Expressions.cs (7)
9581if (scope.HasValue) 9625if (scope.HasValue) 9652if (receiver.Type.SpecialType == SpecialType.System_String && !scope.HasValue) 9671lookupOptions |= scope.HasValue ? LookupOptions.Default : LookupOptions.MustBeInstance; 9677if (scope.HasValue) 9714bool foundApplicable = binder.BindSliceCall(syntax, receiver, filteredCandidates, isExtension: scope.HasValue, ref useSiteInfo, diagnostics, 10553if (constIndex.HasValue)
Binder\Binder_Operators.cs (5)
188if (staticExtensionBest.HasValue) 1225if (extensionBest.HasValue) 2072if (extensionBest.HasValue) 2281if (extensionBest.HasValue) 3369if (staticExtensionBest.HasValue)
Binder\Binder.ValueChecks.cs (1)
354Debug.Assert(GetParameterValEscapeLevel(parameter).HasValue);
Binder\DecisionDagBuilder_CheckOrReachability.cs (1)
762Debug.Assert(_disjunction.HasValue);
Binder\DecisionDagBuilder.cs (4)
4611if (easyOut.HasValue) 4632if (easyOut.HasValue) 4692if (easyOut.HasValue) 4708if (easyOut.HasValue)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
1226Debug.Assert(op1.Priority.HasValue == op2.Priority.HasValue); 1227if (op1.Priority.HasValue && op1.Priority.GetValueOrDefault() != op2.Priority.GetValueOrDefault())
Binder\Semantics\Operators\UnaryOperatorEasyOut.cs (1)
116Debug.Assert(conversion.HasValue && conversion.Value.IsImplicit);
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (1)
321Debug.Assert(arguments.Names[argumentPosition].HasValue);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
54if (_strict.HasValue) return _strict.Value;
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (5)
495Debug.Assert(arguments.Names[badArg].HasValue); 833Debug.Assert(arguments.Names[badArg].HasValue); 853Debug.Assert(arguments.Names[badArg].HasValue); 867Debug.Assert(arguments.Names[result.Result.FirstBadArgument].HasValue); 893Debug.Assert(arguments.Names[badArg].HasValue);
BoundTree\BoundSequencePoint.cs (1)
13if (part.HasValue)
BoundTree\NullabilityRewriter.cs (1)
274if (!_remappedSymbols.TryGetValue(local.ContainingSymbol, out Symbol? updatedContaining) && !updatedType.HasValue)
CodeGen\EmitExpression.cs (4)
613Debug.Assert(walker._result.HasValue); 619if (_result.HasValue) 631Debug.Assert(!_result.HasValue); 640Debug.Assert(!_result.HasValue);
Compilation\CSharpCompilation.cs (2)
3231bool reportUnusedUsings = (!span.HasValue || span.Value == tree.GetRoot(cancellationToken).FullSpan) && ReportUnusedImportsInTree(tree); 3403location = filterSpanWithinTree.HasValue ?
Compilation\SyntaxTreeSemanticModel.cs (1)
108if (span.HasValue && !this.Root.FullSpan.Contains(span.Value))
Compiler\ClsComplianceChecker.cs (3)
122System.Diagnostics.Debug.Assert(warningLocation != null || !moduleDeclaredCompliance.HasValue || (i == 0 && _filterTree != null), 125if (moduleDeclaredCompliance.HasValue) 1150if (declaredCompliance.HasValue)
Compiler\UnprocessedDocumentationCommentFinder.cs (1)
40return _filterSpanWithinTree.HasValue && !_filterSpanWithinTree.Value.Contains(fullSpan);
Errors\LazyMissingNonNullTypesContextDiagnosticInfo.cs (1)
54var info = (type.HasValue) ? new LazyMissingNonNullTypesContextDiagnosticInfo(type.Value, rawInfo) : rawInfo;
FlowAnalysis\AbstractFlowPass.cs (1)
2715Debug.Assert(node.InterpolatedStringHandlerData.HasValue);
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (2)
56return thisIndex.HasValue ? 80if (thisIndex.HasValue)
FlowAnalysis\NullableWalker.cs (2)
9246if (!memberIndex.HasValue) 11533if (rightResultOpt.HasValue)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
428if (!member.HasValue)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
252if (!overloadOpt.HasValue)
Parser\LanguageParser.cs (4)
4341isInAsyncContext.HasValue || 4342isInQueryContext.HasValue || 4343isInFieldKeywordContext.HasValue || 4344forceConditionalAccessExpression.HasValue);
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
45return level.HasValue && level.Value <= 0; 50return level.HasValue ? level - 1 : level;
Symbols\MemberSignatureComparer.cs (2)
679if (isNotNullable1.HasValue && isNotNullable2.HasValue &&
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
267if (value.HasValue)
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
331if (fieldOffset.HasValue)
Symbols\Source\SourceAssemblySymbol.cs (3)
440if (!fieldValue.HasValue) 772if (_compilation.Options.DelaySign.HasValue && (assemblyDelaySignAttributeSetting != ThreeState.Unknown) && 875if (_compilation.Options.DelaySign.HasValue)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1140(!definedWithinSpan.HasValue || syntaxRef.Span.IntersectsWith(definedWithinSpan.Value)))
Symbols\Source\SourceMemberFieldSymbol.cs (1)
679if (!definedWithinSpan.HasValue)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
654if (applyIsGlobalFilter.HasValue && usingDirective.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword) != applyIsGlobalFilter.GetValueOrDefault())
Symbols\Source\SourceNamespaceSymbol.cs (1)
478if (!definedWithinSpan.HasValue)
Symbols\Symbol.cs (1)
965(!definedWithinSpan.HasValue || syntaxRef.Span.IntersectsWith(definedWithinSpan.Value));
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
274if (!definedWithinSpan.HasValue)
Symbols\TypeSymbol.cs (1)
2213if (isOperator.HasValue &&
Symbols\TypeWithAnnotations.cs (3)
783return x.HasValue == y.HasValue && (!x.HasValue || x.GetValueOrDefault().IsSameAs(y.GetValueOrDefault()));
Syntax\SyntaxNodeRemover.cs (1)
110if (!eolTrivia.HasValue)
Utilities\TypeUnionValueSet.cs (3)
124if (!_lazyMightIncludeNonNull.HasValue) 147if (!_lazyIncludesNull.HasValue) 163Debug.Assert(result.HasValue);
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
45return typeParameters.HasValue && typeParameters.Value.Any(typeParameter => typeParameter.Identifier.ValueText == name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (2)
25if (!tokenRange.HasValue || tokenRange.Value.Item2 == endToken) 42if (!tokenRange.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
114return !deconstructionInfoOpt.HasValue || !deconstructionInfoOpt.Value.Nested.IsEmpty || deconstructionInfoOpt.Value.Method != null;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (44)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
34target.HasValue ? AttributeTargetSpecifier(target.Value) : null, 54target.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
323if (target.HasValue && !target.Value.IsValidAttributeTarget())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2261(castExpression.Expression.IsMissing || castExpression.CloseParenToken.TrailingTrivia.GetFirstNewLine().HasValue))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
68if (!firstNonWhitespacePosition.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (2)
192if (indentation.HasValue) 198if (alignmentTokenIndentation.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (37)
274if (previousToken.HasValue) 374if (previousToken.HasValue) 816if (previousToken.HasValue && previousToken.Value != arrayCreationExpression.NewKeyword) 822if (previousToken.HasValue && previousToken.Value.GetPreviousToken().Kind() == SyntaxKind.EqualsToken) 853if (previousToken.HasValue) 877if (previousToken.HasValue && previousToken.Value != attributeDeclaration.OpenBracketToken) 888if (previousToken.HasValue && previousToken.Value != attributeTargetSpecifier.ColonToken) 952Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != operatorToken); 959var onRightOfToken = right == expressionOpt || previousToken.HasValue; 1089if (previousToken.HasValue && previousToken.Value != castExpression.CloseParenToken) 1098if (previousToken.HasValue && previousToken.Value != catchDeclaration.OpenParenToken) 1107if (previousToken.HasValue && previousToken.Value != catchFilterClause.OpenParenToken) 1120Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != coalesceExpression.OperatorToken); 1122var onRightSide = coalesceExpression.Right == expressionOpt || previousToken.HasValue; 1206if (previousToken.HasValue && previousToken.Value != doStatement.OpenParenToken) 1215if (previousToken.HasValue && previousToken.Value != equalsValue.EqualsToken) 1315if (previousToken.HasValue) 1324if (previousToken.HasValue && previousToken.Value != forEachStatementSyntax.InKeyword) 1355if (previousToken.HasValue && previousToken.Value != forStatement.FirstSemicolonToken) 1367if (previousToken.HasValue && previousToken.Value != ifStatement.OpenParenToken) 1385var parameterIndex = previousToken.HasValue 1512var parameterIndex = previousToken.HasValue 1676if (previousToken.HasValue && previousToken.Value != lockStatement.OpenParenToken) 1685if (previousToken.HasValue && previousToken.Value != lambdaExpression.ArrowToken) 1716if (previousTokenOpt.HasValue && previousTokenOpt.Value != memberDeclarator.NameEquals.EqualsToken) 1968if (previousToken.HasValue) 1984Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != prefixUnaryExpression.OperatorToken); 2040Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != awaitExpression.AwaitKeyword); 2062if (previousToken.HasValue && (previousToken.Value != yieldStatement.ReturnOrBreakKeyword || yieldStatement.ReturnOrBreakKeyword.IsKind(SyntaxKind.BreakKeyword))) 2103if (previousToken.HasValue && previousToken.Value != returnStatement.ReturnKeyword) 2189if (previousToken.HasValue) 2206if (previousToken.HasValue && previousToken.Value != switchStatement.OpenParenToken) 2226if (previousToken.HasValue && previousToken.Value != throwExpression.ThrowKeyword) 2235if (previousToken.HasValue && previousToken.Value != throwStatement.ThrowKeyword) 2244if (previousToken.HasValue && previousToken.Value != usingStatement.OpenParenToken) 2449if (previousToken.HasValue && previousToken.Value != whenClause.WhenKeyword) 2458if (previousToken.HasValue && previousToken.Value != whileStatement.OpenParenToken)
Microsoft.CodeAnalysis.CSharp.Features (18)
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (1)
186if (!newLineEdit.HasValue)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
755(symbolKindOrTypeKind.MethodKind.HasValue ? SymbolKind.Method : throw ExceptionUtilities.Unreachable());
Completion\CompletionProviders\SymbolCompletionProvider.cs (2)
150if (result.HasValue) 156if (result.HasValue)
Completion\KeywordRecommenders\AbstractSyntacticSingleKeywordRecommender.cs (1)
52if (!syntaxKind.HasValue)
EditAndContinue\BreakpointSpans.cs (3)
78if (breakpointSpan.HasValue) 87if (candidate.HasValue && breakpointSpan.Value.Start != candidate.Value.Start) 107return candidate.HasValue;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
706if (fieldOrPropertyModifiers.HasValue) 729if (fieldOrPropertyModifiers.HasValue) 733if (!nodeModifiers.HasValue || 2328if (_span.HasValue)
EditAndContinue\SyntaxComparer.cs (3)
932Contract.ThrowIfFalse(rightName.HasValue == leftName.HasValue); 934if (leftName.HasValue)
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
45return level.HasValue && level.Value <= 0; 50return level.HasValue ? level - 1 : level;
Structure\CSharpStructureHelpers.cs (1)
245var startPosition = firstComment.HasValue ? firstComment.Value.FullSpan.Start : startToken.SpanStart;
Microsoft.CodeAnalysis.CSharp.Workspaces (49)
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (1)
204if (!conversions.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
45return typeParameters.HasValue && typeParameters.Value.Any(typeParameter => typeParameter.Identifier.ValueText == name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (2)
25if (!tokenRange.HasValue || tokenRange.Value.Item2 == endToken) 42if (!tokenRange.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
114return !deconstructionInfoOpt.HasValue || !deconstructionInfoOpt.Value.Nested.IsEmpty || deconstructionInfoOpt.Value.Method != null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
34target.HasValue ? AttributeTargetSpecifier(target.Value) : null, 54target.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
323if (target.HasValue && !target.Value.IsValidAttributeTarget())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2261(castExpression.Expression.IsMissing || castExpression.CloseParenToken.TrailingTrivia.GetFirstNewLine().HasValue))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
68if (!firstNonWhitespacePosition.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (2)
192if (indentation.HasValue) 198if (alignmentTokenIndentation.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (37)
274if (previousToken.HasValue) 374if (previousToken.HasValue) 816if (previousToken.HasValue && previousToken.Value != arrayCreationExpression.NewKeyword) 822if (previousToken.HasValue && previousToken.Value.GetPreviousToken().Kind() == SyntaxKind.EqualsToken) 853if (previousToken.HasValue) 877if (previousToken.HasValue && previousToken.Value != attributeDeclaration.OpenBracketToken) 888if (previousToken.HasValue && previousToken.Value != attributeTargetSpecifier.ColonToken) 952Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != operatorToken); 959var onRightOfToken = right == expressionOpt || previousToken.HasValue; 1089if (previousToken.HasValue && previousToken.Value != castExpression.CloseParenToken) 1098if (previousToken.HasValue && previousToken.Value != catchDeclaration.OpenParenToken) 1107if (previousToken.HasValue && previousToken.Value != catchFilterClause.OpenParenToken) 1120Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != coalesceExpression.OperatorToken); 1122var onRightSide = coalesceExpression.Right == expressionOpt || previousToken.HasValue; 1206if (previousToken.HasValue && previousToken.Value != doStatement.OpenParenToken) 1215if (previousToken.HasValue && previousToken.Value != equalsValue.EqualsToken) 1315if (previousToken.HasValue) 1324if (previousToken.HasValue && previousToken.Value != forEachStatementSyntax.InKeyword) 1355if (previousToken.HasValue && previousToken.Value != forStatement.FirstSemicolonToken) 1367if (previousToken.HasValue && previousToken.Value != ifStatement.OpenParenToken) 1385var parameterIndex = previousToken.HasValue 1512var parameterIndex = previousToken.HasValue 1676if (previousToken.HasValue && previousToken.Value != lockStatement.OpenParenToken) 1685if (previousToken.HasValue && previousToken.Value != lambdaExpression.ArrowToken) 1716if (previousTokenOpt.HasValue && previousTokenOpt.Value != memberDeclarator.NameEquals.EqualsToken) 1968if (previousToken.HasValue) 1984Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != prefixUnaryExpression.OperatorToken); 2040Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != awaitExpression.AwaitKeyword); 2062if (previousToken.HasValue && (previousToken.Value != yieldStatement.ReturnOrBreakKeyword || yieldStatement.ReturnOrBreakKeyword.IsKind(SyntaxKind.BreakKeyword))) 2103if (previousToken.HasValue && previousToken.Value != returnStatement.ReturnKeyword) 2189if (previousToken.HasValue) 2206if (previousToken.HasValue && previousToken.Value != switchStatement.OpenParenToken) 2226if (previousToken.HasValue && previousToken.Value != throwExpression.ThrowKeyword) 2235if (previousToken.HasValue && previousToken.Value != throwStatement.ThrowKeyword) 2244if (previousToken.HasValue && previousToken.Value != usingStatement.OpenParenToken) 2449if (previousToken.HasValue && previousToken.Value != whenClause.WhenKeyword) 2458if (previousToken.HasValue && previousToken.Value != whileStatement.OpenParenToken)
Microsoft.CodeAnalysis.Features (92)
BraceMatching\AbstractEmbeddedLanguageBraceMatcher.cs (1)
47if (result.HasValue)
BraceMatching\BraceMatchingService.cs (1)
37if (braces.HasValue)
BraceMatching\IBraceMatchingServiceExtensions.cs (4)
36if (braces1.HasValue && position >= braces1.Value.LeftSpan.Start && position < braces1.Value.LeftSpan.End) 41else if (braces2.HasValue && position > braces2.Value.RightSpan.Start && position <= braces2.Value.RightSpan.End) 46else if (braces2.HasValue && position > braces2.Value.LeftSpan.Start && position <= braces2.Value.LeftSpan.End) 51else if (braces1.HasValue && position >= braces1.Value.RightSpan.Start && position < braces1.Value.RightSpan.End)
ChangeSignature\AbstractChangeSignatureService.cs (1)
516if (!actualIndex.HasValue)
CodeFixes\Configuration\ConfigurationUpdater.cs (2)
713if (lastValidSpecificHeaderSpanEnd.HasValue) 723else if (lastValidHeaderSpanEnd.HasValue)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
326(!minContainingSpan.HasValue || minContainingSpan.Value.Contains(declSpan)))
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (1)
128if (correlationId.HasValue)
CodeLens\CodeLensReferencesService.cs (1)
289if (reference.HasValue)
Completion\CompletionOptions.cs (1)
69=> !ShowItemsFromUnimportedNamespaces.HasValue || ShowItemsFromUnimportedNamespaces.Value;
Completion\MatchResult.cs (3)
58if (matchX.HasValue) 60if (matchY.HasValue) 75if (matchY.HasValue)
Completion\PatternMatchHelper.cs (2)
110if (additionalMatch.HasValue && additionalMatch.Value.CompareTo(match, ignoreCase: false) < 0) 176additionalFlag && additionalMatch.HasValue && additionalMatch.Value.CompareTo(patternMatch, ignoreCase: false) < 0)
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
229Contract.ThrowIfFalse(dotToken.HasValue);
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
317if (commitChar.HasValue && !char.IsWhiteSpace(commitChar.Value) && commitChar.Value != replacementText[^1])
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
51if (extensionMethodData.HasValue)
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (1)
82var forSpanAnalysis = documentAnalysisScope?.Span.HasValue ?? false;
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (2)
60var logPerformanceInfo = range.HasValue; 254!span.HasValue ||
Diagnostics\Service\DiagnosticAnalyzerService.IncrementalMemberEditAnalyzer.cs (5)
63Debug.Assert(!analysisScope.Span.HasValue); 94if (!compilerAnalyzerData.HasValue && analyzer.IsCompilerAnalyzer()) 101if (!compilerAnalyzerData.HasValue && analyzer.IsCompilerAnalyzer()) 108if (spanBasedAnalyzers.Count == 0 && (!compilerAnalyzerData.HasValue || !compilerAnalyzerData.Value.spanBased)) 137if (!compilerAnalyzerData.HasValue)
Diagnostics\Service\DocumentAnalysisExecutor.cs (2)
140if (span.HasValue) 274if (!span.HasValue)
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (2)
205if (!lineOffset.HasValue || line.Start + lineOffset.Value < startPosition) 304if (currentLinePosition.HasValue)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
3344if (newActiveStatementSpan.HasValue) 4874if (oldAttributes.HasValue) 4951if (!oldAttributes.HasValue) 6961if (list.HasValue)
EditAndContinue\CommittedSolution.cs (1)
251if (!maybePdbHasDocument.HasValue)
EditAndContinue\EditSession.cs (3)
1154if (staleness.HasValue) 1539if (projectSummaryToReport.HasValue || !projectDiagnostics.IsEmpty) 1557if (staleness.HasValue)
EditAndContinue\RudeEditDiagnosticsBuilder.cs (1)
34if (deferredReportingCondition.HasValue)
EmbeddedLanguages\RegularExpressions\RegexParser.cs (1)
905Contract.ThrowIfFalse(comment.HasValue);
EmbeddedLanguages\StackFrame\StackFrameExtensions.cs (1)
19=> trivia.HasValue ? [trivia.Value] : [];
EmbeddedLanguages\StackFrame\StackFrameLexer.cs (10)
93if (ctor.HasValue) 193if (result.HasValue) 207if (result.HasValue) 221if (result.HasValue) 237if (!inTrivia.HasValue) 290if (!lineTrivia.HasValue) 296if (!numberToken.HasValue) 369if (!n1.HasValue) 384if (!n2.HasValue) 435if (trivia.HasValue)
EmbeddedLanguages\StackFrame\StackFrameNodeDefinitions.cs (8)
225Debug.Assert(!dollarToken.HasValue || dollarToken.Value.Kind == StackFrameKind.DollarToken); 2413 => DollarToken.HasValue ? DollarToken.Value : null, 2424 => Suffix.HasValue ? Suffix.Value : null, 562Debug.Assert(colon.HasValue == line.HasValue); 563Debug.Assert(!line.HasValue || line.Value.Kind == StackFrameKind.NumberToken); 5791 => Colon.HasValue ? Colon.Value : null, 5802 => Line.HasValue ? Line.Value : null,
EmbeddedLanguages\StackFrame\StackFrameParser.cs (10)
49if (!lexer.HasValue) 150if (!currentIdentifer.HasValue) 214if (!identifier.HasValue) 276if (!identifier.HasValue) 318if (!generatedIdentifier.HasValue) 352if (!generatedIdentifier.HasValue) 383if (!arity.HasValue) 417while (currentIdentifier.HasValue && currentIdentifier.Value.Kind == StackFrameKind.IdentifierToken) 526if (!identifier.HasValue) 593if (!lineNumber.HasValue)
ExternalAccess\UnitTesting\UnitTestingFeaturesReferencesService.cs (1)
44if (!callerMethods.HasValue || callerMethods.Value.IsEmpty)
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
740if (item.HasValue)
SignatureHelp\AbstractSignatureHelpProvider.cs (1)
100if (!selectedItem.HasValue || isEmpty)
SignatureHelp\SignatureHelpItems.cs (2)
71Contract.ThrowIfTrue(selectedItem.HasValue && selectedItem.Value >= items.Count); 78if (selectedItem.HasValue && items.Count != distinctItems.Count)
Snippets\SnippetProviders\AbstractTypeSnippetProvider.cs (1)
38if (accessibilityModifiersChange.HasValue)
src\4f5ad909b1ed0e10\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
83if (conditionName != nameof(Nullable<>.HasValue))
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
122if (context.FilterSpan.HasValue)
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
173if (notification.HasValue
src\roslyn\src\Analyzers\Core\Analyzers\Formatting\AbstractFormattingAnalyzer.cs (1)
51var span = context.FilterSpan.HasValue ? context.FilterSpan.GetValueOrDefault() : root.FullSpan;
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
179if (previous.HasValue)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (4)
283hasPragmaInAnalysisSpan = hasPragmaInAnalysisSpan || !span.HasValue || span.Value.OverlapsWith(trivia.Span); 439if (lazyIsUnhandledAnalyzer.HasValue && !lazyIsUnhandledAnalyzer.Value) 568if (lastEnablePragma.HasValue) 757if (span.HasValue && !node.FullSpan.Contains(span.Value))
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
268if (!completed.Value && !context.FilterSpan.HasValue)
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
198if (context.FilterSpan.HasValue)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
116if (segmentIsNamedTypeName.HasValue) 393if (bindingContext != null && result.HasValue && !result.Value.IsBound)
StackTraceExplorer\StackTraceExplorerService.cs (1)
64if (!serializedDefinition.HasValue)
Microsoft.CodeAnalysis.Features.ExternalAccess (2)
Copilot\Internal\Analyzer\AbstractCopilotCodeAnalysisService.cs (2)
91var isFullDocumentAnalysis = !span.HasValue; 163if (span.HasValue)
Microsoft.CodeAnalysis.NetAnalyzers (27)
Microsoft.CodeQuality.Analyzers\Maintainability\CodeMetricsAnalyzer.cs (6)
156if (symbol.Kind == SymbolKind.NamedType && codeAnalysisMetricData.DepthOfInheritance.HasValue) 159if (inheritanceThreshold.HasValue && codeAnalysisMetricData.DepthOfInheritance.Value > inheritanceThreshold.Value) 173if (complexityThreshold.HasValue && codeAnalysisMetricData.CyclomaticComplexity > complexityThreshold.Value) 185if (maintainabilityIndexThreshold.HasValue && maintainabilityIndexThreshold.Value > codeAnalysisMetricData.MaintainabilityIndex) 197if (classCouplingThreshold.HasValue && codeAnalysisMetricData.CoupledNamedTypes.Count > classCouplingThreshold.Value) 222if (symbolKindOpt.HasValue && symbolKindOpt.Value == symbolKind)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (1)
1681if (mandatorySupportFound.HasValue)
Microsoft.NetCore.Analyzers\Usage\DoNotPassNonNullableValueToArgumentNullExceptionThrowIfNull.Fixer.cs (1)
20protected const string HasValue = nameof(Nullable<int>.HasValue);
src\0437c1690f5501bd\CopyAnalysis.CopyDataFlowOperationVisitor.cs (4)
157Debug.Assert(ReferenceEquals(sourceCopyAnalysisData, targetCopyAnalysisData) || fromPredicateKind.HasValue); 175if (!fromPredicateKind.HasValue && 216if (fromPredicateKind.HasValue) 475if (returnValueAndPredicateKind.HasValue &&
src\440320f3f10733a8\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (1)
81entity.CaptureId.HasValue &&
src\9382845807600969\AnalysisEntityDataFlowOperationVisitor.cs (3)
504if (invocationInstance.HasValue) 510if (thisOrMeInstanceForCaller.HasValue) 693entity.CaptureId.HasValue &&
src\ffd9070534249528\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (1)
196entity.CaptureId.HasValue &&
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (2)
42Debug.Assert(depthOfInheritance.HasValue == (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace || symbol.Kind == SymbolKind.NamedType)); 159if (DepthOfInheritance.HasValue)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
177if (!effectiveSeverity.HasValue) 224return overriddenSeverity.HasValue ? overriddenSeverity.Value.ToDiagnosticSeverity() : rule.DefaultSeverity;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntity.cs (2)
49Debug.Assert(symbol != null || !indices.IsEmpty || instanceReferenceOperationSyntax != null || captureId.HasValue); 213public bool IsLValueFlowCaptureEntity => CaptureId.HasValue && CaptureId.Value.IsLValueFlowCapture;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (3)
308if (analysisContext.InterproceduralAnalysisData?.InvocationInstance.HasValue == true) 384if (!mergedPredicateValueKind.HasValue) 2350RoslynDebug.Assert(invokedMethod.ReturnsVoid == !analysisResult.ReturnValueAndPredicateKind.HasValue);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralAnalysisData.cs (1)
98if (instanceAndPointsToValue.HasValue)
Microsoft.CodeAnalysis.Razor.Compiler (11)
Language\Components\ComponentInjectIntermediateNode.cs (1)
72if (TypeName == string.Empty && TypeSpan.HasValue)
Language\Components\ComponentLoweringPass.cs (1)
347Debug.Assert(node.StartTagSpan.HasValue, "Component tags should always have a start tag span.");
Language\Components\ComponentNodeWriter.cs (1)
1157if (typeInferenceCaptureScope.HasValue)
Language\DefaultTagHelperResolutionPhase.cs (1)
1230if (baseStructure.HasValue && baseStructure != rule.TagStructure)
Language\Extensions\MetadataAttributeTargetExtension.cs (1)
62if (node.Source.HasValue)
Language\Legacy\CSharpCodeParser.cs (3)
2095Debug.Assert(CurrentToken.Kind == SyntaxKind.Keyword && result.HasValue); 2112Debug.Assert(CurrentToken.Kind == SyntaxKind.Keyword && result.HasValue); 3116result.HasValue &&
Language\Legacy\TagHelperParseTreeRewriter.cs (1)
489if (baseStructure.HasValue && baseStructure != rule.TagStructure)
Mvc\InjectDirective.cs (1)
90if (typeSpan.HasValue)
Mvc\InjectTargetExtension.cs (1)
52if (node.Source.HasValue)
Microsoft.CodeAnalysis.ResxSourceGenerator (25)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (2)
43Debug.Assert(depthOfInheritance.HasValue == (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace || symbol.Kind == SymbolKind.NamedType)); 160if (DepthOfInheritance.HasValue)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
173if (!effectiveSeverity.HasValue) 223return overriddenSeverity.HasValue ? overriddenSeverity.Value.ToDiagnosticSeverity() : rule.DefaultSeverity;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (3)
14=> !contextFilterSpan.HasValue || span.IntersectsWith(contextFilterSpan.Value); 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 178Contract.ThrowIfFalse(context.FilterSpan.HasValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
154if (providerAndTree.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SourceTextExtensions_SharedWithCodeStyle.cs (1)
22if (!linePosition.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (3)
50return firstOffset.HasValue 61return lastOffset.HasValue && lastOffset.Value < lineText.Length 195if (firstNonWhitespaceChar.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (4)
33Debug.Assert(valueUsageInfoOpt.HasValue ^ typeOrNamespaceUsageInfoOpt.HasValue); 46=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsReadFrom(); 49=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsWrittenTo();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
787return span.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
241if (isUserConfiguredGeneratedCode.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
34return firstNonWhitespaceOffset.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
30if (span.HasValue && !HasImportThatIntersectsWithSpan(span.Value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
26severity.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
26capitalization.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
112if (accessibility.HasValue && !ApplicableAccessibilityList.Any(static (k, accessibility) => k == accessibility, accessibility))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (2)
46if (result.HasValue) 91if (result.HasValue)
Microsoft.CodeAnalysis.VisualBasic (58)
Analysis\FlowAnalysis\DataFlowPass.vb (4)
677If Me._tryState.HasValue Then 1457If oldTryState.HasValue Then 1478If oldTryState.HasValue Then 1512If oldTryState.HasValue Then
Analysis\FlowAnalysis\RegionReachableWalker.vb (2)
26startPointIsReachable = If(walker._regionStartPointIsReachable.HasValue, walker._regionStartPointIsReachable.Value, True) 27endPointIsReachable = If(walker._regionEndPointIsReachable.HasValue, walker._regionEndPointIsReachable.Value, walker.State.Alive)
Binding\Binder_Attributes.vb (2)
296If Not results.BestResult.HasValue Then 710If kv.HasValue Then
Binding\Binder_Conversions.vb (1)
377If isTrueOperator.BestResult.HasValue Then
Binding\Binder_Delegates.vb (1)
519If resolutionResult.BestResult.HasValue Then
Binding\Binder_Invocation.vb (1)
755If Not results.BestResult.HasValue Then
Binding\Binder_Lookup.vb (2)
1532If currentResult.IsGood AndAlso leaveEventsOnly.HasValue Then 1758If leaveEventsOnly.HasValue AndAlso (newSymbol.Kind = SymbolKind.Event) <> leaveEventsOnly.Value Then
Binding\Binder_ObjectInitializer.vb (1)
411If Not results.BestResult.HasValue Then
Binding\Binder_Operators.vb (6)
301Dim bestCandidate As OverloadResolution.Candidate = If(userDefinedOperator.BestResult.HasValue, 599If userDefinedOperator.BestResult.HasValue Then 671If Not bitwiseOperator.BestResult.HasValue Then 719If Not leftCheckOperator.BestResult.HasValue Then 1165Dim bestCandidate As OverloadResolution.Candidate = If(userDefinedOperator.BestResult.HasValue, 1250If userDefinedOperator.BestResult.HasValue Then
Binding\Binder_Query.vb (3)
1992If results.BestResult.HasValue Then 2066If results.BestResult.HasValue Then 4653If Not results.BestResult.HasValue Then
Binding\Binder_Statements.vb (1)
3290If userDefinedOperator.ResolutionIsLateBound OrElse Not userDefinedOperator.BestResult.HasValue Then
Binding\Binder.vb (2)
92If isEarlyAttributeBinder.HasValue Then 96If ignoreBaseClassesInLookup.HasValue Then
Binding\SourceFileBinder.vb (4)
43If _sourceFile.OptionStrict.HasValue Then 55If _sourceFile.OptionInfer.HasValue Then 67If _sourceFile.OptionExplicit.HasValue Then 79If _sourceFile.OptionCompareText.HasValue Then
CommandLine\CommandLineDiagnosticFormatter.vb (1)
37If Not diagnosticSpanOpt.HasValue OrElse
Compilation\ClsComplianceChecker.vb (2)
687If declaredCompliance.HasValue Then 741If temp.HasValue Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (3)
549(Not Me._filterSpanWithinTree.HasValue OrElse Me._filterSpanWithinTree.Value.Contains(loc.SourceSpan)) 717ElseIf errid.HasValue Then 720ElseIf errid.HasValue Then
Compilation\DocumentationComments\DocumentationCommentWalker.vb (1)
279If crefAttr IsNot Nothing AndAlso errid.HasValue Then
Compilation\DocumentationComments\UnprocessedDocumentationCommentFinder.vb (1)
51Return Me._filterSpanWithinTree.HasValue AndAlso Not Me._filterSpanWithinTree.Value.Contains(fullSpan)
Compilation\OverloadResolutionResult.vb (1)
42Return ValidResult.HasValue
Compilation\VisualBasicCompilation.vb (1)
2318If Not filterSpanWithinTree.HasValue OrElse filterSpanWithinTree.Value = tree.GetRoot(cancellationToken).FullSpan Then
Semantics\Conversions.vb (2)
1504If results.BestResult.HasValue Then 2202If fastConversion.HasValue Then
Semantics\Operators.vb (2)
535If Not userDefinedOperator.BestResult.HasValue AndAlso userDefinedOperator.Candidates.Length = 0 Then 905ElseIf Not userDefinedOperator.BestResult.HasValue AndAlso userDefinedOperator.Candidates.Length = 0 Then
src\roslyn\src\Compilers\VisualBasic\BasicAnalyzerDriver\VisualBasicDeclarationComputer.vb (2)
34Return level.HasValue AndAlso level.Value <= 0 38Return If(level.HasValue, level.Value - 1, level)
Symbols\ConstraintsHelper.vb (2)
871DirectCast(type, TypeParameterSymbol).GetAllConstraints(constraintsBuilder, If(fromConstraintOpt.HasValue, fromConstraintOpt.Value, constraint)) 882If(fromConstraintOpt.HasValue,
Symbols\Source\SourceFile.vb (7)
200If filterSpan.HasValue AndAlso Not filterSpan.Value.IntersectsWith(optionStmtSyntax.FullSpan) Then 206If optionStrict.HasValue Then 213If optionInfer.HasValue Then 220If optionExplicit.HasValue Then 227If optionCompareText.HasValue Then 254If filterSpan.HasValue AndAlso Not filterSpan.Value.IntersectsWith(statement.FullSpan) Then 262If filterSpan.HasValue AndAlso Not filterSpan.Value.IntersectsWith(statement.FullSpan) Then
Symbols\Source\SourceModuleSymbol.vb (1)
594If filterSpanWithinTree.HasValue Then
Symbols\Symbol.vb (2)
923(Not definedWithinSpan.HasValue OrElse syntaxRef.Span.IntersectsWith(definedWithinSpan.Value)) Then 934(Not definedWithinSpan.HasValue OrElse definedWithinSpan.Value.IntersectsWith(syntaxNode.FullSpan))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Rules\ElasticTriviaFormattingRule.vb (1)
215If Not lines.HasValue Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\AttributeGenerator.vb (1)
39If(target.HasValue, SyntaxFactory.AttributeTarget(target.Value), Nothing),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
331If target.HasValue AndAlso Not target.Value.IsValidAttributeTarget() Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.Indenter.vb (4)
56If triviaOpt.HasValue Then 72If tokenOpt.HasValue Then 94If tokenOpt.HasValue Then 122If indentation.HasValue Then
Microsoft.CodeAnalysis.VisualBasic.Features (15)
Completion\CompletionProviders\AwaitCompletionProvider.vb (1)
67If Not dotToken.HasValue Then
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (2)
201If ch.HasValue AndAlso ch.Value = ":"c Then 203ElseIf ch.HasValue AndAlso ch.Value = "="c Then
Completion\KeywordRecommenders\Declarations\EndBlockKeywordRecommender.vb (1)
102Where missingKeyword.HasValue
EditAndContinue\BreakpointSpans.vb (3)
64If breakpointSpan.HasValue Then 70If candidate.HasValue AndAlso breakpointSpan.Value.Start <> candidate.Value.Start Then 88Return candidate.HasValue
EditAndContinue\SyntaxComparer.vb (2)
1107If leftName.HasValue AndAlso rightName.HasValue Then
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (4)
354If propertyOrFieldModifiers.HasValue Then 369If propertyOrFieldModifiers.HasValue Then 372If Not nodeModifiers.HasValue OrElse 1725If _span.HasValue Then
src\roslyn\src\Compilers\VisualBasic\BasicAnalyzerDriver\VisualBasicDeclarationComputer.vb (2)
34Return level.HasValue AndAlso level.Value <= 0 38Return If(level.HasValue, level.Value - 1, level)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Performance\BasicDoNotGuardCall.Fixer.vb (1)
88If Not statements.HasValue Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Rules\ElasticTriviaFormattingRule.vb (1)
215If Not lines.HasValue Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\AttributeGenerator.vb (1)
39If(target.HasValue, SyntaxFactory.AttributeTarget(target.Value), Nothing),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
331If target.HasValue AndAlso Not target.Value.IsValidAttributeTarget() Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.Indenter.vb (4)
56If triviaOpt.HasValue Then 72If tokenOpt.HasValue Then 94If tokenOpt.HasValue Then 122If indentation.HasValue Then
Microsoft.CodeAnalysis.Workspaces (54)
CodeFixes\FixAllOccurrences\FixAllState.cs (1)
39Debug.Assert(diagnosticSpan.HasValue || scope is not (FixAllScope.ContainingMember or FixAllScope.ContainingType));
CodeFixesAndRefactorings\FixAllLogger.cs (1)
146if (correlationId.HasValue)
Diagnostics\Extensions.cs (3)
315if (diagnosticIdsToFilter.IsEmpty && !filterSpan.HasValue) 322filterSpan.HasValue && !filterSpan.Value.IntersectsWith(diagnostic.Location.SourceSpan)); 440if (span.HasValue && !span.Value.IntersectsWith(diagnostic.Location.SourceSpan))
Log\StatisticResult.cs (1)
87if (Mode.HasValue)
PatternMatching\AllLowerCamelCaseMatcher.cs (1)
91if (contiguous.HasValue && contiguous.Value)
PatternMatching\PatternMatch.cs (1)
66=> other.HasValue ? CompareTo(other.Value, ignoreCase) : -1;
PatternMatching\PatternMatcher.cs (6)
468if (camelCaseKind.HasValue) 485if (camelCaseKindIgnoreCase.HasValue) 488if (camelCaseKind.HasValue) 544Debug.Assert(firstMatch.HasValue); 545Debug.Assert(contiguous.HasValue); 607if (!gotOneMatchThisCandidate && contiguous.HasValue)
Rename\ConflictResolution.cs (2)
134if (first.HasValue) 141if (first.HasValue)
Rename\Renamer.RenameSymbolDocumentAction.cs (1)
82return analysis.HasValue
Rename\Renamer.SyncNamespaceDocumentAction.cs (1)
54if (analysisResult.HasValue)
Serialization\AbstractOptionsSerializationService.cs (2)
41writer.WriteBoolean(options.DelaySign.HasValue); 42if (options.DelaySign.HasValue)
Shared\Extensions\SemanticModelExtensions.cs (1)
100else if (overridingIdentifier.HasValue)
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (3)
204if (!s_enabled.HasValue) 219if (!_enableDiagnosticTokens.HasValue) 221if (s_enableDiagnosticTokens.HasValue)
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
119reuseInfoOpt.HasValue && 186if (!map.TryGetValue(document.Id, out var reuseInfoOpt) || !reuseInfoOpt.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (3)
14=> !contextFilterSpan.HasValue || span.IntersectsWith(contextFilterSpan.Value); 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 178Contract.ThrowIfFalse(context.FilterSpan.HasValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
154if (providerAndTree.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SourceTextExtensions_SharedWithCodeStyle.cs (1)
22if (!linePosition.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (3)
50return firstOffset.HasValue 61return lastOffset.HasValue && lastOffset.Value < lineText.Length 195if (firstNonWhitespaceChar.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (4)
33Debug.Assert(valueUsageInfoOpt.HasValue ^ typeOrNamespaceUsageInfoOpt.HasValue); 46=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsReadFrom(); 49=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsWrittenTo();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
787return span.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
241if (isUserConfiguredGeneratedCode.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
34return firstNonWhitespaceOffset.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
30if (span.HasValue && !HasImportThatIntersectsWithSpan(span.Value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
26severity.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
26capitalization.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
112if (accessibility.HasValue && !ApplicableAccessibilityList.Any(static (k, accessibility) => k == accessibility, accessibility))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (2)
46if (result.HasValue) 91if (result.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
52if (diagnosticSpan.HasValue &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
244if (desiredIndex.HasValue)
Utilities\NullableStructExtensions.cs (1)
12hasValue = value.HasValue;
Workspace\ProjectSystem\SolutionChangeAccumulator.cs (3)
26public bool HasChange => _workspaceChangeKind.HasValue; 45if (!_workspaceChangeKind.HasValue) 102if (!_workspaceChangeKind.HasValue || WorkspaceChangeProjectId == projectId)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
58if (result.HasValue)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (1)
217if (existingProcess.HasValue)
MSBuild\SolutionFileReader.cs (1)
35if (!projects.HasValue)
Microsoft.CSharp (5)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\AggregateSymbol.cs (1)
229if (!_hasConversion.HasValue)
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (3)
61if (ats.ConstraintError.HasValue) 84if (ats.OuterType != null && ((flags & CheckConstraintsFlags.Outer) != 0 || !ats.OuterType.ConstraintError.HasValue)) 106if (arg is AggregateType atArg && !atArg.ConstraintError.HasValue)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
103Debug.Assert(!pAggregate.ConstraintError.HasValue);
Microsoft.Data.Analysis (8)
DataFrameColumns\StringDataFrameColumn.cs (1)
334if (value.HasValue && value.Value)
DataFrameColumns\VBufferDataFrameColumn.cs (1)
220if (value.HasValue && value.Value == true)
PrimitiveColumnContainer.cs (5)
129SetValidityBit(Length, value.HasValue); 135if (!value.HasValue) 168if (value.HasValue) 402if (value.HasValue) 431if (value.HasValue)
PrimitiveDataFrameColumn.cs (1)
469if (value.HasValue && value.Value == true)
Microsoft.Diagnostics.DataContractReader.Contracts (16)
Contracts\CallingConvention\CdacTypeHandle.cs (2)
211if (singleFieldType.HasValue) 217if (!singleFieldType.HasValue)
Contracts\CodeVersions_1.cs (1)
127if (!info.HasValue)
Contracts\ExecutionManager\Helpers\RuntimeFunctionLookup.cs (3)
24if (function.EndAddress.HasValue) 28if (unwindInfo.FunctionLength.HasValue) 31Debug.Assert(unwindInfo.Header.HasValue);
Contracts\GCInfo\GCInfoDecoder.cs (2)
545GSCookieValidRangeStart: gsCookie.HasValue ? _validRangeStart : 0, 546GSCookieValidRangeEnd: gsCookie.HasValue ? _validRangeEnd : 0,
Contracts\GCInfo\X86\GCInfo.cs (2)
1023GSCookieValidRangeStart: gsCookie.HasValue ? (uint)Header.PrologSize : 0, 1024GSCookieValidRangeEnd: gsCookie.HasValue ? MethodSize : 0,
Contracts\ManagedTypeSource_1.cs (1)
57return cached.HasValue;
Contracts\RuntimeTypeSystem_1.cs (2)
2559if (thread.HasValue) 2570if (thread.HasValue)
Data\EEClass.cs (1)
34public bool HasLayout => VMFlags.HasValue && (VMFlags.Value & HasLayoutFlag) != 0;
parent\parent\parent\parent\coreclr\tools\Common\CallingConvention\ArgIterator.cs (1)
123return _argLocDescForStructInRegs.HasValue;
RuntimeTypeSystemHelpers\MethodValidation.cs (1)
207if (codeInfo.HasValue)
Microsoft.DotNet.Build.Manifest (1)
PackageArtifactModel.cs (1)
47if (!value.HasValue)
Microsoft.DotNet.HotReload.Watch (11)
FileWatcher\FileWatcher.cs (1)
177return changedPath.HasValue ? new ChangedFile(fileSet[changedPath.Value.Path], changedPath.Value.Kind) : null;
HotReload\HotReloadDotNetWatcher.cs (3)
867if (lastDelete.HasValue) 881if (lastAdd.HasValue) 897if (!lastAdd.HasValue)
HotReload\RunningProjectsManager.cs (1)
97exitCode.HasValue &&
Process\ProcessRunner.cs (1)
264if (timeout.HasValue)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\KestrelWebSocketServer.cs (1)
95if (result.HasValue)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\WebSocketConfig.cs (1)
32if (SecurePort.HasValue)
UI\ConsoleReporter.cs (2)
31if (color.HasValue) 38if (color.HasValue)
UI\RestartPrompt.cs (1)
14if (AutoRestartPreference.HasValue)
Microsoft.Extensions.AI (3)
ChatRouting\FailoverChatClientAttempt.cs (1)
48outputCommitted == timeToFirstUpdate.HasValue,
Embeddings\OpenTelemetryEmbeddingGenerator.cs (2)
213if (_tokenUsageHistogram.Enabled && inputTokens.HasValue) 226if (inputTokens.HasValue)
Microsoft.Extensions.AI.Abstractions (4)
ChatCompletion\ChatResponseExtensions.cs (2)
671r1.HasValue && r2.HasValue && r1.Value != r2.Value;
UsageDetails.cs (2)
214private static long? NullableSum(long? a, long? b) => (a.HasValue || b.HasValue) ? (a ?? 0) + (b ?? 0) : null;
Microsoft.Extensions.AI.Evaluation.Reporting (2)
Storage\DiskBasedResultStore.cs (2)
206if (count.HasValue && count <= 0) 213if (count.HasValue)
Microsoft.Extensions.AI.OpenAI (5)
OpenAIRealtimeClientSession.cs (4)
247if (responseCreate.MaxOutputTokens.HasValue) 446if (options.MaxOutputTokens.HasValue) 880if (outputOpts.Voice.HasValue) 937if (audioOut.Voice.HasValue)
ResponsesClientContinuationToken.cs (1)
40if (SequenceNumber.HasValue)
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIResponseClientTests.cs (2)
6525var createdUpdate = updates.First(u => u.CreatedAt.HasValue); 7011if (SequenceNumber.HasValue)
Microsoft.Extensions.AI.Tests (12)
ChatCompletion\DependencyInjectionPatterns.cs (6)
121ChatClientBuilder builder = lifetime.HasValue 143ChatClientBuilder builder = lifetime.HasValue 166var builder = lifetime.HasValue 189var builder = lifetime.HasValue 211var builder = lifetime.HasValue 235var builder = lifetime.HasValue
Image\ImageGeneratorDependencyInjectionPatterns.cs (2)
121ImageGeneratorBuilder builder = lifetime.HasValue 143ImageGeneratorBuilder builder = lifetime.HasValue
SpeechToText\SpeechToTextClientDependencyInjectionPatterns.cs (2)
121SpeechToTextClientBuilder builder = lifetime.HasValue 143SpeechToTextClientBuilder builder = lifetime.HasValue
TextToSpeech\TextToSpeechClientDependencyInjectionPatterns.cs (2)
121TextToSpeechClientBuilder builder = lifetime.HasValue 143TextToSpeechClientBuilder builder = lifetime.HasValue
Microsoft.Extensions.Caching.Abstractions (1)
DistributedCacheEntryOptions.cs (1)
84isSet = value.HasValue;
Microsoft.Extensions.Caching.Hybrid.Tests (4)
SizeTests.cs (4)
36if (maximumKeyLength.HasValue) 41if (maximumPayloadBytes.HasValue) 105if (maximumKeyLength.HasValue) 110if (maximumPayloadBytes.HasValue)
Microsoft.Extensions.Caching.SqlServer (10)
DatabaseOperations.cs (4)
375if (options.AbsoluteExpirationRelativeToNow.HasValue) 379else if (options.AbsoluteExpiration.HasValue) 393if (!slidingExpiration.HasValue && !absoluteExpiration.HasValue)
SqlParameterCollectionExtensions.cs (2)
68if (value.HasValue) 83if (utcTime.HasValue)
SqlServerCache.cs (4)
44if (cacheOptions.ExpiredItemsDeletionInterval.HasValue && 285if (!options.AbsoluteExpiration.HasValue 286&& !options.AbsoluteExpirationRelativeToNow.HasValue 287&& !options.SlidingExpiration.HasValue)
Microsoft.Extensions.Caching.StackExchangeRedis (14)
RedisCache.cs (14)
414if (sldExpr.HasValue) 453if (sldExpr.HasValue) 508if (absoluteExpirationTicks.HasValue && absoluteExpirationTicks.Value != NotPresent) 513if (slidingExpirationTicks.HasValue && slidingExpirationTicks.Value != NotPresent) 525if (absExpr.HasValue) 553if (absExpr.HasValue) 578if (absoluteExpiration.HasValue && options.SlidingExpiration.HasValue) 584else if (absoluteExpiration.HasValue) 588else if (options.SlidingExpiration.HasValue) 597if (options.AbsoluteExpiration.HasValue && options.AbsoluteExpiration <= creationTime) 607if (options.AbsoluteExpirationRelativeToNow.HasValue) 732if (sldExpr.HasValue) 779if (sldExpr.HasValue)
Microsoft.Extensions.Compliance.Redaction (7)
HmacRedactor.cs (1)
47_keyId = value.KeyId.HasValue ? value.KeyId.Value.ToInvariantString() + ':' : string.Empty;
src\Shared\Data.Validation\LengthAttribute.cs (3)
101if (MaximumLength.HasValue && MinimumLength >= MaximumLength) 156if (MaximumLength.HasValue) 180var validationMessage = MaximumLength.HasValue
src\Shared\Data.Validation\TimeSpanAttribute.cs (3)
28public TimeSpan Minimum => _minMs.HasValue ? TimeSpan.FromMilliseconds((double)_minMs) : TimeSpan.Parse(_min!, CultureInfo.InvariantCulture); 37if (_maxMs.HasValue) 142if (max.HasValue)
Microsoft.Extensions.DataIngestion (7)
Chunkers\IngestionChunkerOptions.cs (2)
47if (_overlapTokens.HasValue && value <= _overlapTokens.Value) 66if (_overlapTokens.HasValue)
Processors\ImageAlternativeTextEnricher.cs (1)
86img.Content.HasValue && !string.IsNullOrEmpty(img.MediaType) && string.IsNullOrEmpty(img.AlternativeText);
Processors\KeywordEnricher.cs (2)
44double threshold = confidenceThreshold.HasValue 47int keywordsCount = maxKeywords.HasValue
Processors\SentimentEnricher.cs (1)
34double threshold = confidenceThreshold.HasValue ? Throw.IfOutOfRange(confidenceThreshold.Value, 0.0, 1.0, nameof(confidenceThreshold)) : 0.7;
Processors\SummaryEnricher.cs (1)
34int wordCount = maxWordCount.HasValue ? Throw.IfLessThanOrEqual(maxWordCount.Value, 0, nameof(maxWordCount)) : 100;
Microsoft.Extensions.DataIngestion.Abstractions (1)
IngestionDocumentElement.cs (1)
136if (value.HasValue)
Microsoft.Extensions.DataIngestion.Tests (1)
Readers\DocumentReaderConformanceTests.cs (1)
122Assert.Contains(elements, element => element is IngestionDocumentImage img && img.Content.HasValue && !string.IsNullOrEmpty(img.MediaType));
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
110if (value.HasValue)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (6)
src\Shared\Data.Validation\LengthAttribute.cs (3)
101if (MaximumLength.HasValue && MinimumLength >= MaximumLength) 156if (MaximumLength.HasValue) 180var validationMessage = MaximumLength.HasValue
src\Shared\Data.Validation\TimeSpanAttribute.cs (3)
28public TimeSpan Minimum => _minMs.HasValue ? TimeSpan.FromMilliseconds((double)_minMs) : TimeSpan.Parse(_min!, CultureInfo.InvariantCulture); 37if (_maxMs.HasValue) 142if (max.HasValue)
Microsoft.Extensions.Diagnostics.Probes (6)
src\Shared\Data.Validation\LengthAttribute.cs (3)
101if (MaximumLength.HasValue && MinimumLength >= MaximumLength) 156if (MaximumLength.HasValue) 180var validationMessage = MaximumLength.HasValue
src\Shared\Data.Validation\TimeSpanAttribute.cs (3)
28public TimeSpan Minimum => _minMs.HasValue ? TimeSpan.FromMilliseconds((double)_minMs) : TimeSpan.Parse(_min!, CultureInfo.InvariantCulture); 37if (_maxMs.HasValue) 142if (max.HasValue)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (6)
src\Shared\Data.Validation\LengthAttribute.cs (3)
101if (MaximumLength.HasValue && MinimumLength >= MaximumLength) 156if (MaximumLength.HasValue) 180var validationMessage = MaximumLength.HasValue
src\Shared\Data.Validation\TimeSpanAttribute.cs (3)
28public TimeSpan Minimum => _minMs.HasValue ? TimeSpan.FromMilliseconds((double)_minMs) : TimeSpan.Parse(_min!, CultureInfo.InvariantCulture); 37if (_maxMs.HasValue) 142if (max.HasValue)
Microsoft.Extensions.FileProviders.Embedded (3)
EmbeddedResourceFileInfo.cs (2)
51if (!_length.HasValue) 84if (!_length.HasValue)
Manifest\ManifestFileInfo.cs (1)
55if (!_length.HasValue)
Microsoft.Extensions.Http.Diagnostics (4)
Latency\Internal\HttpRequestLatencyListener.cs (2)
70if (token.HasValue) 78if (mtoken.HasValue)
Logging\Internal\Log.cs (2)
97var statusCodePropertyCount = record.StatusCode.HasValue ? 1 : 0; 116if (record.StatusCode.HasValue)
Microsoft.Extensions.Http.Resilience (7)
Resilience\Internal\HttpResilienceMetricsEnricher.cs (1)
19if (context.TelemetryEvent.Outcome.HasValue && context.TelemetryEvent.Outcome.Value.Result is HttpResponseMessage response)
src\Shared\Data.Validation\LengthAttribute.cs (3)
101if (MaximumLength.HasValue && MinimumLength >= MaximumLength) 156if (MaximumLength.HasValue) 180var validationMessage = MaximumLength.HasValue
src\Shared\Data.Validation\TimeSpanAttribute.cs (3)
28public TimeSpan Minimum => _minMs.HasValue ? TimeSpan.FromMilliseconds((double)_minMs) : TimeSpan.Parse(_min!, CultureInfo.InvariantCulture); 37if (_maxMs.HasValue) 142if (max.HasValue)
Microsoft.Extensions.Logging.Console (6)
AnsiParsingLogConsole.cs (2)
38if (background.HasValue) 48if (foreground.HasValue)
TextWriterExtensions.cs (4)
14if (background.HasValue) 18if (foreground.HasValue) 23if (foreground.HasValue) 27if (background.HasValue)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
XunitLoggerFactoryExtensions.cs (1)
88var timestamp = _logStart.HasValue ?
Microsoft.Extensions.Telemetry (6)
src\Shared\Data.Validation\LengthAttribute.cs (3)
101if (MaximumLength.HasValue && MinimumLength >= MaximumLength) 156if (MaximumLength.HasValue) 180var validationMessage = MaximumLength.HasValue
src\Shared\Data.Validation\TimeSpanAttribute.cs (3)
28public TimeSpan Minimum => _minMs.HasValue ? TimeSpan.FromMilliseconds((double)_minMs) : TimeSpan.Parse(_min!, CultureInfo.InvariantCulture); 37if (_maxMs.HasValue) 142if (max.HasValue)
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
262!lm.EventId.HasValue &&
Microsoft.Interop.LibraryImportGenerator (4)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
181if (dllImportData.BestFitMapping.HasValue)
Analyzers\ConvertToLibraryImportFixer.cs (3)
155=> entryPointSuffix.HasValue && entryPoint.LastOrDefault() == entryPointSuffix.Value 528if (!dllImportData.ExactSpelling && entryPointSuffix.HasValue) 562if (entryPointSuffix.HasValue && !hasEntryPointAttributeArgument)
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
35if (_hash.HasValue)
Microsoft.JSInterop (4)
Implementation\JSObjectReferenceJsonWorker.cs (1)
47if (!id.HasValue)
Infrastructure\JSStreamReferenceJsonConverter.cs (2)
54if (!id.HasValue) 59if (!length.HasValue)
JSRuntime.cs (1)
124if (DefaultAsyncTimeout.HasValue)
Microsoft.Maui (2)
Animations\AnimationLerpingExtensions.cs (2)
46 => start.HasValue && end.HasValue ? start.Value.Lerp(end.Value, progress) : start.GenericLerp(end, progress);
Microsoft.Maui.Controls (5)
Element\Element.cs (1)
127 if (!_id.HasValue)
FontExtensions.cs (1)
32 if (defaultSize.HasValue && (size <= 0 || double.IsNaN(size)))
FontSizeConverter.cs (1)
55 if (namedSize.HasValue)
Items\ItemsLayoutTypeConverter.cs (1)
41 if (orientation.HasValue)
Shell\ShellNavigationManager.cs (1)
75 bool canCancel = (shellNavigationParameters.CanCancel.HasValue) ? shellNavigationParameters.CanCancel.Value : _shell.CurrentState != null;
Microsoft.Maui.Controls.Build.Tasks (1)
SetPropertiesVisitor.cs (1)
300 if (bindingExtensionType.HasValue)
Microsoft.Maui.Controls.Foldable (1)
TwoPaneViewLayoutGuide.cs (1)
173 if (!locationOnScreen.HasValue)
Microsoft.Maui.Essentials (2)
TextToSpeech\TextToSpeech.shared.cs (2)
161 if (options?.Volume.HasValue ?? false) 167 if (options?.Pitch.HasValue ?? false)
Microsoft.ML.AutoML (12)
API\BinaryClassificationExperiment.cs (1)
371_rnd = settings.Seed.HasValue ? new Random(settings.Seed.Value) : new Random();
API\MulticlassClassificationExperiment.cs (1)
357_rnd = settings.Seed.HasValue ? new Random(settings.Seed.Value) : new Random();
API\RegressionExperiment.cs (1)
377_rnd = settings.Seed.HasValue ? new Random(settings.Seed.Value) : new Random();
ColumnInference\TextFileSample.cs (1)
170multiplier.HasValue ? buf.Count(x => x == '\n') * multiplier : null);
Experiment\Experiment.cs (1)
144_newContextSeedGenerator = (mainContextSeed.HasValue) ? RandomUtils.Create(mainContextSeed.Value) : null;
PipelineSuggesters\PipelineSuggester.cs (4)
156if (fp.NumSteps.HasValue) 160if (fp.StepSize.HasValue) 175if (lp.NumSteps.HasValue) 179if (lp.StepSize.HasValue)
Sweepers\Parameters.cs (2)
228var logBase = !_args.StepSize.HasValue 354var logBase = !_args.StepSize.HasValue
Tuner\PipelineProposer.cs (1)
77if (settings.Seed.HasValue)
Microsoft.ML.Core (5)
Data\RoleMappedSchema.cs (1)
226if (info.HasValue)
Environment\HostEnvironmentBase.cs (2)
142Random rand = (seed.HasValue) ? RandomUtils.Create(seed.Value) : RandomUtils.Create(_rand); 421Random rand = (seed.HasValue) ? RandomUtils.Create(seed.Value) : RandomUtils.Create(_rand);
Utilities\SubsetStream.cs (1)
44Contracts.Assert(!length.HasValue || length >= 0);
Utilities\Utils.cs (1)
190Contracts.Assert(!count.HasValue || (0 <= count && count <= src.Count));
Microsoft.ML.Core.Tests (22)
UnitTests\TestEntryPoints.cs (22)
1632Assert.True(scoreCol.HasValue, "Data scored with binary ensemble does not have a score column"); 1641Assert.True(scoreCol.HasValue, "Data scored with regression ensemble does not have a score column"); 1649Assert.True(scoreCol.HasValue, "Data scored with anomaly detection ensemble does not have a score column"); 4481Assert.True(treesCol.HasValue); 4484Assert.True(leavesCol.HasValue); 4487Assert.True(pathsCol.HasValue); 5000Assert.True(aucCol.HasValue); 5174Assert.True(metricCol.HasValue); 5176Assert.True(foldCol.HasValue); 5178Assert.True(isWeightedCol.HasValue); 5358Assert.True(metricCol.HasValue); 5360Assert.True(foldCol.HasValue); 5403Assert.True(countCol.HasValue); 5405Assert.True(foldCol.HasValue); 5586Assert.True(warningCol.HasValue); 5766Assert.True(metricCol.HasValue); 5768Assert.True(foldCol.HasValue); 6066Assert.True(metricCol.HasValue); 6068Assert.True(foldCol.HasValue); 6121Assert.True(nameCol.HasValue); 6285Assert.True(accCol.HasValue); 6457Assert.True(accCol.HasValue);
Microsoft.ML.Data (58)
Data\Conversion.cs (8)
1226Contracts.Assert(res.HasValue); 1245Contracts.Assert(res.HasValue); 1264Contracts.Assert(res.HasValue); 1283Contracts.Assert(res.HasValue); 1454Contracts.Check(res.HasValue, "Value could not be parsed from text to sbyte."); 1462Contracts.Check(res.HasValue, "Value could not be parsed from text to short."); 1470Contracts.Check(res.HasValue, "Value could not be parsed from text to int."); 1478Contracts.Check(res.HasValue, "Value could not be parsed from text to long.");
DataLoadSave\Binary\BinarySaver.cs (6)
195_host.CheckUserArg(!args.MaxRowsPerBlock.HasValue || args.MaxRowsPerBlock > 0, nameof(args.MaxRowsPerBlock), "Must be positive."); 196_host.CheckUserArg(!args.MaxBytesPerBlock.HasValue || args.MaxBytesPerBlock > 0, nameof(args.MaxBytesPerBlock), "Must be positive."); 198_host.CheckUserArg(args.MaxRowsPerBlock.HasValue || args.MaxBytesPerBlock.HasValue, nameof(args.MaxBytesPerBlock), 731if (!_maxBytesPerBlock.HasValue) 733_host.Assert(_maxRowsPerBlock.HasValue && _maxRowsPerBlock.Value > 0); // argument validation should have ensured this
DataLoadSave\Database\DatabaseLoader.cs (1)
335Contracts.Assert(range.Max.HasValue);
DataLoadSave\DataOperationsCatalog.cs (2)
531if (seed.HasValue) 571seedToUse.HasValue ?
DataLoadSave\Transpose\TransposeLoader.cs (2)
246Host.Assert(rowCountNull.HasValue); 308Host.Assert(rowCountNull.HasValue);
DataView\ArrayDataViewBuilder.cs (2)
186if (rowCount.HasValue) 188_host.Check(!RowCount.HasValue || RowCount.Value == rowCount.Value, "Specified row count incompatible with existing columns");
DataView\CacheDataView.cs (3)
613Contracts.Assert(rowCount.HasValue); 677if (!_parent.GetRowCount().HasValue && waiters.Count == 0) 692return !rowCount.HasValue || pos < rowCount.Value;
DataView\TypedCursor.cs (1)
182Random rand = randomSeed.HasValue ? RandomUtils.Create(randomSeed.Value) : null;
Evaluators\AnomalyDetectionEvaluator.cs (4)
673if (!column.HasValue) 678if (!column.HasValue) 683if (!column.HasValue) 717if (numAnom == null || !numAnom.HasValue)
Evaluators\BinaryClassifierEvaluator.cs (2)
1350if (probCol.HasValue) 1485if (probCol.HasValue)
Evaluators\ClusteringEvaluator.cs (2)
329Contracts.Assert(features.HasValue); 410Host.Assert(features.HasValue);
Evaluators\EvaluatorBase.cs (1)
417Contracts.Assert(col.HasValue);
Evaluators\EvaluatorUtils.cs (6)
122if (!col.HasValue) 177if (!col.HasValue) 1085var hasWeighted = isWeightedColumn.HasValue; 1363bool isWeighted = weightColumn.HasValue; 1388host.CheckParam(weightColumn.HasValue, nameof(getWeighted), "There is no Weight column in the confusionMatrix data view."); 1737if (warningTextColumn != null && warningTextColumn.HasValue && warningTextColumn.Value.Type is TextDataViewType)
Evaluators\Metrics\BinaryClassificationMetrics.cs (1)
91if (!column.HasValue)
Evaluators\Metrics\RankingMetrics.cs (1)
52if (!column.HasValue)
Evaluators\MultiOutputRegressionEvaluator.cs (3)
683if (isWeightedCol.HasValue) 701if (currentColumn.IsHidden || (isWeightedCol.HasValue && i == isWeightedCol.Value.Index) || 729bool foundWeighted = !isWeightedCol.HasValue;
Prediction\Calibrator.cs (3)
957if (weightColumn != null && !weightCol.HasValue) 962var cols = weightCol.HasValue ? 970ValueGetter<Single> weightGetter = !weightCol.HasValue ? (ref float dst) => dst = 1 :
Scorers\BinaryClassifierScorer.cs (1)
220Host.Assert(predictedLabelCol.HasValue);
Scorers\PredictedLabelScorerBase.cs (1)
234if (mcol.HasValue)
Training\TrainerUtils.cs (2)
315if (!col.HasValue) 336if (!col.HasValue)
Transforms\KeyToVector.cs (1)
314if (keyValuesColumn.HasValue)
Transforms\ValueMapping.cs (4)
447Host.Check(column.HasValue, "The selected column " + nameof(keyColumn) + " is not included in the targeted IDataView " + nameof(dataView)); 455Host.Check(column.HasValue, "The selected column " + nameof(valueColumn) + " is not included in the targeted IDataView " + nameof(dataView)); 992if (!schema.GetColumnOrNull(keyColumn).HasValue) 994if (!schema.GetColumnOrNull(valueColumn).HasValue)
Utilities\TypeParsingUtils.cs (1)
60Type rawType = type.HasValue ? type.Value.ToType() : InternalDataKind.U8.ToType();
Microsoft.ML.Ensemble (1)
Selector\SubModelSelector\BaseSubModelSelector.cs (1)
115if (probCol.HasValue)
Microsoft.ML.EntryPoints (1)
FeatureCombiner.cs (1)
121if (!col.HasValue)
Microsoft.ML.FastTree (7)
FastTree.cs (2)
207if (useTranspose.HasValue) 1289if (!info.HasValue)
GamTrainer.cs (1)
272if (useTranspose.HasValue)
RandomForestClassification.cs (1)
278if (FastTreeTrainerOptions.NumberOfThreads.HasValue)
RandomForestRegression.cs (1)
410if (FastTreeTrainerOptions.NumberOfThreads.HasValue)
SumupPerformanceCommand.cs (1)
84env.CheckUserArg(!args.Parallel.HasValue || args.Parallel > 0, nameof(args.Parallel), "If defined must be positive");
TreeEnsembleFeaturizer.cs (1)
800if (!col.HasValue)
Microsoft.ML.GenAI.Core (1)
Utility\Cache.cs (1)
77if (maxLength.HasValue && previousSeqLen + newSeqLen > maxLength.Value)
Microsoft.ML.KMeansClustering (2)
KMeansPlusPlusTrainer.cs (2)
191Host.CheckUserArg(!options.NumberOfThreads.HasValue || options.NumberOfThreads > 0, nameof(options.NumberOfThreads), 281if (argNumThreads.HasValue)
Microsoft.ML.LightGbm (10)
LightGbmMulticlassTrainer.cs (4)
325if (!LightGbmTrainerOptions.LearningRate.HasValue) 327if (!LightGbmTrainerOptions.NumberOfLeaves.HasValue) 329if (!LightGbmTrainerOptions.MinimumExampleCountPerLeaf.HasValue) 342if (LightGbmTrainerOptions.UseSoftmax.HasValue)
LightGbmTrainerBase.cs (6)
291if (NumberOfThreads.HasValue) 294res["seed"] = (Seed.HasValue) ? Seed : host.Rand.Next(); 539if (!LightGbmTrainerOptions.LearningRate.HasValue) 541if (!LightGbmTrainerOptions.NumberOfLeaves.HasValue) 543if (!LightGbmTrainerOptions.MinimumExampleCountPerLeaf.HasValue) 641if (!LightGbmTrainerOptions.UseCategoricalSplit.HasValue)
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
287if (!col.HasValue)
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
365if (predictedLabelColumn.HasValue && HasKeyValues(predictedLabelColumn.Value))
Microsoft.ML.OnnxTransformer (7)
OnnxTransform.cs (1)
532if (!col.HasValue)
OnnxUtils.cs (6)
212sessionOptions.InterOpNumThreads = interOpNumThreads.HasValue ? interOpNumThreads.GetValueOrDefault() : onnxSessionOptions.InterOpNumThreads; 213sessionOptions.IntraOpNumThreads = intraOpNumThreads.HasValue ? intraOpNumThreads.GetValueOrDefault() : onnxSessionOptions.IntraOpNumThreads; 224sessionOptions.InterOpNumThreads = interOpNumThreads.HasValue ? interOpNumThreads.GetValueOrDefault() : onnxSessionOptions.InterOpNumThreads; 225sessionOptions.IntraOpNumThreads = intraOpNumThreads.HasValue ? intraOpNumThreads.GetValueOrDefault() : onnxSessionOptions.IntraOpNumThreads; 239sessionOptions.InterOpNumThreads = interOpNumThreads.HasValue ? interOpNumThreads.GetValueOrDefault() : onnxSessionOptions.InterOpNumThreads; 240sessionOptions.IntraOpNumThreads = intraOpNumThreads.HasValue ? intraOpNumThreads.GetValueOrDefault() : onnxSessionOptions.IntraOpNumThreads;
Microsoft.ML.Parquet (2)
PartitionedFileLoader.cs (1)
148if (Type.HasValue)
PartitionedPathParser.cs (1)
111if (!col.Type.HasValue)
Microsoft.ML.Predictor.Tests (6)
TestPredictors.cs (6)
681Assert.True(scoreColumn.HasValue); 683Assert.True(probabilityColumn.HasValue); 685Assert.True(predictedLabelColumn.HasValue); 697Assert.True(scoreColArray[i].HasValue); 699Assert.True(probColArray[i].HasValue); 701Assert.True(predColArray[i].HasValue);
Microsoft.ML.Recommender (1)
MatrixFactorizationTrainer.cs (1)
353_host.CheckUserArg(!options.NumberOfThreads.HasValue || options.NumberOfThreads > 0, nameof(options.NumberOfThreads), posError);
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
540if (result.HasValue)
Microsoft.ML.Samples (1)
Dynamic\DataOperations\LoadingText.cs (1)
103if (featuresColumn.HasValue)
Microsoft.ML.StandardTrainers (15)
Standard\Online\AveragedLinear.cs (1)
310Contracts.CheckUserArg(!options.ResetWeightsAfterXExamples.HasValue || options.ResetWeightsAfterXExamples > 0, nameof(options.ResetWeightsAfterXExamples), UserErrorPositive);
Standard\SdcaBinary.cs (11)
336if (SdcaTrainerOptions.NumberOfThreads.HasValue) 351if (SdcaTrainerOptions.ConvergenceCheckFrequency.HasValue) 456Contracts.Assert(SdcaTrainerOptions.MaximumNumberOfIterations.HasValue); 460Contracts.Assert(SdcaTrainerOptions.L2Regularization.HasValue); 464ch.Assert(SdcaTrainerOptions.L1Regularization.HasValue); 494ch.Assert(SdcaTrainerOptions.L2Regularization.HasValue); 558ch.Assert(SdcaTrainerOptions.MaximumNumberOfIterations.HasValue); 795Contracts.Assert(SdcaTrainerOptions.L1Regularization.HasValue); 992Contracts.Assert(SdcaTrainerOptions.L2Regularization.HasValue); 993Contracts.Assert(SdcaTrainerOptions.L1Regularization.HasValue); 2035if (_options.NumberOfThreads.HasValue)
Standard\SdcaMulticlass.cs (3)
179Contracts.Assert(SdcaTrainerOptions.L1Regularization.HasValue); 411Contracts.Assert(SdcaTrainerOptions.L2Regularization.HasValue); 412Contracts.Assert(SdcaTrainerOptions.L1Regularization.HasValue);
Microsoft.ML.Sweeper (2)
Parameters.cs (2)
236var logBase = !_options.StepSize.HasValue 368var logBase = !_options.StepSize.HasValue
Microsoft.ML.TensorFlow.Tests (2)
TensorflowTests.cs (2)
1359Assert.True(schema.GetColumnOrNull("input1").HasValue); 1361Assert.True(schema.GetColumnOrNull("input2").HasValue);
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
1205Assert.True(view.GetRowCount().HasValue);
Microsoft.ML.TestFrameworkCommon (1)
TestDownloadUtils.cs (1)
39if (expectedLength.HasValue && fileStream.Length != expectedLength.Value)
Microsoft.ML.TimeSeries (1)
SeasonalityDetector.cs (1)
64host.CheckUserArg(column.HasValue, nameof(inputColumnName));
Microsoft.ML.Tokenizers (20)
Model\BPETokenizer.cs (4)
916bool skipUnknownToken = !_unknownTokenId.HasValue || !considerSpecialTokens; 1256if (unk.HasValue) 1265if (unk.HasValue) 1296if (unk.HasValue)
Model\CodeGenTokenizer.cs (15)
380if (addBos && BeginningOfSentenceId.HasValue) 399if (addEos && EndOfSentenceId.HasValue) 620if (addBeginningOfSentence && BeginningOfSentenceId.HasValue) 646if (addEndOfSentence && EndOfSentenceId.HasValue && ids.Count < maxTokenCount) 839int count = (addBeginningOfSentence && BeginningOfSentenceId.HasValue) ? 1 : 0; 858if (addEndOfSentence && EndOfSentenceId.HasValue && count < maxTokenCount) 976tokenCount = (addEndOfSentence && EndOfSentenceId.HasValue) ? 1 : 0; 997if (addBeginningOfSentence && BeginningOfSentenceId.HasValue && tokenCount < maxTokenCount) 1262if (BeginningOfSentenceId.HasValue && id == BeginningOfSentenceId.Value) 1271if (EndOfSentenceId.HasValue && id == EndOfSentenceId.Value) 1280if (UnknownTokenId.HasValue && id == UnknownTokenId.Value) 1370if (BeginningOfSentenceId.HasValue && id == BeginningOfSentenceId.Value) 1393if (EndOfSentenceId.HasValue && id == EndOfSentenceId.Value) 1416if (UnknownTokenId.HasValue && id == UnknownTokenId.Value) 1667else if (UnknownTokenId.HasValue)
Model\Word.cs (1)
118if (dropout.HasValue && (_random ??= new()).NextDouble() < dropout)
Microsoft.ML.Tokenizers.Tests (3)
CodeGenTests.cs (3)
551Assert.True(codeGenTokenizer.BeginningOfSentenceId.HasValue); 684Assert.True(codeGenTokenizer.EndOfSentenceId.HasValue); 817Assert.True(codeGenTokenizer.BeginningOfSentenceId.HasValue);
Microsoft.ML.Transforms (30)
Dracula\CountTableTransformer.cs (1)
164_host.Assert(col.HasValue);
Expression\LambdaBinder.cs (1)
1053if (lim < 2 && (value = items[1 - lim].AsExpr.ExprValue) != null && !cmpLax(value, value).HasValue)
GroupTransform.cs (1)
355_ectx.Check(retrievedColumn.HasValue, errorMessage);
LearnerFeatureSelection.cs (8)
73if (Threshold.HasValue == NumSlotsToKeep.HasValue) 121Contracts.Assert(options.Threshold.HasValue != options.NumSlotsToKeep.HasValue); 133if (options.Threshold.HasValue) 140Contracts.Assert(options.NumSlotsToKeep.HasValue); 271host.Assert(options.Threshold.HasValue != options.NumSlotsToKeep.HasValue);
MissingValueReplacingUtils.cs (2)
517Contracts.Assert(!val.HasValue || -valMax <= val && val <= valMax); 519if (!val.HasValue)
RandomFourierFeaturizing.cs (2)
116_rand = seed.HasValue ? RandomUtils.Create(seed) : RandomUtils.Create(host.Rand); 301var rng = columns[i].Seed.HasValue ? RandomUtils.Create(columns[i].Seed.Value) : Host.Rand;
SvmLight\SvmLightLoader.cs (4)
583_host.Assert(keyCol.HasValue); 668if (numRows.HasValue) 678env.Assert(col.HasValue); 729if (keyValuesCol.HasValue)
SvmLight\SvmLightSaver.cs (8)
99if (!labelCol.HasValue) 103if (!featureCol.HasValue) 107if (!string.IsNullOrWhiteSpace(_groupCol) && !groupCol.HasValue) 111if (!string.IsNullOrWhiteSpace(_weightCol) && !weightCol.HasValue) 123if (groupCol.HasValue) 125if (weightCol.HasValue) 134var groupGetter = groupCol.HasValue ? cursor.GetGetter<ulong>(groupCol.Value) : null; 135var weightGetter = weightCol.HasValue ? cursor.GetGetter<float>(weightCol.Value) : null;
Text\StopWordsRemovingTransformer.cs (1)
92if (!string.IsNullOrWhiteSpace(LanguagesColumn) || Language.HasValue)
Text\WordEmbeddingsExtractor.cs (1)
227env.CheckUserArg(!options.ModelKind.HasValue || Enum.IsDefined(typeof(WordEmbeddingEstimator.PretrainedModelKind), options.ModelKind), nameof(options.ModelKind));
UngroupTransform.cs (1)
158if (srcRowCount.HasValue && srcRowCount.Value <= (long.MaxValue / commonSize))
Microsoft.ML.Vision (2)
ImageClassificationTrainer.cs (2)
703(generateValidationSet && _options.ValidationSetFraction.HasValue); 850if (validationFraction.HasValue)
Microsoft.NET.Build.Containers (1)
Registry\Registry.cs (1)
151public int MaxChunkSizeBytes => _settings.ChunkedUploadSizeBytes.HasValue ? _settings.ChunkedUploadSizeBytes.Value : (IsAmazonECRRegistry ? 5248080 : s_defaultChunkSizeBytes);
Microsoft.NET.Build.Tasks (1)
CheckSdkVulnerabilities.cs (1)
68if (summary.IsEol && summary.EolDate.HasValue)
Microsoft.NET.HostModel (1)
HostModelUtils.cs (1)
54return bufferSize.HasValue
Microsoft.Net.Http.Headers (30)
CacheControlHeaderValue.cs (8)
351if (_maxAge.HasValue) 358if (_sharedMaxAge.HasValue) 368if (_maxStaleLimit.HasValue) 375if (_minFresh.HasValue) 451result = result ^ (_maxAge.HasValue ? _maxAge.GetValueOrDefault().GetHashCode() ^ 1 : 0) ^ 452(_sharedMaxAge.HasValue ? _sharedMaxAge.GetValueOrDefault().GetHashCode() ^ 2 : 0) ^ 453(_maxStaleLimit.HasValue ? _maxStaleLimit.GetValueOrDefault().GetHashCode() ^ 4 : 0) ^ 454(_minFresh.HasValue ? _minFresh.GetValueOrDefault().GetHashCode() ^ 8 : 0);
HeaderUtilities.cs (1)
24if (value.HasValue)
RangeItemHeaderValue.cs (10)
29if (!from.HasValue && !to.HasValue) 33if (from.HasValue && (from.GetValueOrDefault() < 0)) 37if (to.HasValue && (to.GetValueOrDefault() < 0)) 41if (from.HasValue && to.HasValue && (from.GetValueOrDefault() > to.GetValueOrDefault())) 69if (!_from.HasValue) 73else if (!_to.HasValue) 90if (!_from.HasValue) 94else if (!_to.HasValue)
SetCookieHeaderValue.cs (6)
196if (Expires.HasValue) 201if (MaxAge.HasValue) 343if (Expires.HasValue) 348if (MaxAge.HasValue) 750^ (Expires.HasValue ? Expires.GetHashCode() : 0) 751^ (MaxAge.HasValue ? MaxAge.GetHashCode() : 0)
StringWithQualityHeaderValue.cs (5)
71if (_quality.HasValue) 94if (_quality.HasValue) 99return other._quality.HasValue && (_quality.GetValueOrDefault() == other._quality.Value); 104return !other._quality.HasValue; 112if (_quality.HasValue)
Microsoft.NET.ProjectData (5)
CachePathResolver.cs (2)
538 if (requiredMajor.HasValue && ver.Major != requiredMajor.Value) continue; 1113 if (requiredMajor.HasValue && ver.Major != requiredMajor.Value) continue;
Donor\ProjectDataDonorIndex.Selection.cs (2)
369 if (entry.NewestMtimeMs.HasValue) 374 return entry.UpdatedUtc.HasValue
Donor\ProjectDataDonorIndex.Serialization.cs (1)
156 if (value.HasValue)
Microsoft.NET.ProjectData.Tasks (1)
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\Donor\ProjectDataDonorIndex.Serialization.cs (1)
156 if (value.HasValue)
Microsoft.Private.Windows.Core (27)
Generated\361d1da7f942c932\Windows.Win32.UI_Shell_IDragSourceHelper_Extensions.g.cs (1)
37 winmdroot.Foundation.HRESULT __result = @this.InitializeFromWindow(hwnd, ppt.HasValue ? &pptLocal : null, pDataObject);
Generated\361d1da7f942c932\Windows.Win32.UI_Shell_IDragSourceHelper2_Extensions.g.cs (1)
37 winmdroot.Foundation.HRESULT __result = @this.InitializeFromWindow(hwnd, ppt.HasValue ? &pptLocal : null, pDataObject);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDragSourceHelper.g.cs (1)
90 winmdroot.Foundation.HRESULT __result = this.InitializeFromWindow(hwnd, ppt.HasValue ? &pptLocal : null, pDataObject);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDragSourceHelper2.g.cs (1)
77 winmdroot.Foundation.HRESULT __result = this.InitializeFromWindow(hwnd, ppt.HasValue ? &pptLocal : null, pDataObject);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvokeCore.GDI32.dll.g.cs (4)
166 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateDCW(pwszDriverLocal, pwszDeviceLocal, pszPortLocal, pdm.HasValue ? &pdmLocal : null); 243 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateEnhMetaFile(hdc, lpFilenameLocal, lprc.HasValue ? &lprcLocal : null, lpDescLocal); 302 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateICW(pszDriverLocal, pszDeviceLocal, pszPortLocal, pdm.HasValue ? &pdmLocal : null); 389 winmdroot.Foundation.BOOL __result = PInvokeCore.EnumEnhMetaFile(hdc, hmf, proc, param3, lpRect.HasValue ? &lpRectLocal : null);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvokeCore.USER32.dll.g.cs (1)
258 winmdroot.Foundation.BOOL __result = PInvokeCore.EnumDisplayMonitors(hdc, lprcClip.HasValue ? &lprcClipLocal : null, lpfnEnum, dwData);
System\Value.cs (18)
95if (value.HasValue) 121if (value.HasValue) 147if (value.HasValue) 173if (value.HasValue) 199if (value.HasValue) 225if (value.HasValue) 251if (value.HasValue) 277if (value.HasValue) 303if (value.HasValue) 329if (value.HasValue) 355if (value.HasValue) 381if (value.HasValue) 407if (value.HasValue) 433if (value.HasValue) 467if (!value.HasValue) 506if (!value.HasValue) 531if (value.HasValue) 591public static implicit operator Value(decimal? value) => value.HasValue ? new(value.Value) : new(value);
Microsoft.TemplateEngine.Cli (1)
TabularOutput\TabularOutput.cs (1)
127if (_settings.HeaderSeparator.HasValue)
Microsoft.TemplateEngine.Core (4)
Expressions\Converter.cs (1)
51if (handlerResult.HasValue)
Expressions\ScopeBuilder.cs (2)
141if (activeLiteralSequenceBoundsMarker.HasValue) 173else if (activeLiteralSequenceBoundsMarker.HasValue)
Operations\SetFlag.cs (1)
51if (Default.HasValue)
Microsoft.TemplateEngine.Edge (6)
Template\InputDataSetExtensions.cs (3)
70(dt.IsRequiredConditionResult.HasValue && dt.IsRequiredConditionResult.Value) || dt.ParameterDefinition.Precedence.IsRequired 92string.IsNullOrEmpty(inputParameterData.ParameterDefinition.Precedence.IsEnabledCondition) ^ !evaluatedInputParameterData.IsEnabledConditionResult.HasValue 94string.IsNullOrEmpty(inputParameterData.ParameterDefinition.Precedence.IsRequiredCondition) ^ !evaluatedInputParameterData.IsRequiredConditionResult.HasValue))
Template\ParameterSetBuilder.cs (1)
250IReadOnlyList<EvalData> disabledParameters = parameters.Where(p => p.IsEnabledConditionResult.HasValue && !p.IsEnabledConditionResult.Value).ToList();
TemplateListFilter.cs (2)
39if (result.HasValue) 84if (result.HasValue)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
ConfigModel\ConditionedConfigurationElement.cs (1)
32if (!_conditionResult.HasValue)
Microsoft.TemplateEngine.Utils (1)
ExactVersionSpecification.cs (1)
30return result.HasValue && result.Value == 0;
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Nuget.Frameworks\HashCodeCombiner.cs (1)
64if (o.HasValue)
Mono.Cecil (12)
Mono.Cecil.Cil\Symbols.cs (4)
201 if (offset.HasValue) 209 get { return instruction == null && !offset.HasValue; } 212 internal bool IsResolved => instruction != null || !offset.HasValue; 246 if (index.HasValue)
Mono.Cecil\ArrayType.cs (2)
35 get { return lower_bound.HasValue || upper_bound.HasValue; }
Mono.Cecil\AssemblyWriter.cs (3)
2873 if (dimension.UpperBound.HasValue) { 2876 } else if (dimension.LowerBound.HasValue) 2886 if (dimension.UpperBound.HasValue)
Mono.Cecil\EmbeddedResource.cs (2)
55 if (offset.HasValue) 69 if (offset.HasValue)
Mono.Cecil\PropertyDefinition.cs (1)
37 if (has_this.HasValue)
Mono.Cecil.Rocks (2)
Mono.Cecil.Rocks\DocCommentId.cs (2)
192 if (dimension.LowerBound.HasValue) 197 if (dimension.UpperBound.HasValue)
MSBuild (1)
parent\Shared\TaskHostConfiguration.cs (1)
557if (translator.NegotiatedPacketVersion.HasValue && translator.NegotiatedPacketVersion is 0 or >= 2)
NuGet.Build.Tasks (1)
BuildTasksUtility.cs (1)
325if (restoreProjectStyle.HasValue)
NuGet.CommandLine.XPlat (8)
Commands\Package\Update\PackageUpdateCommandRunner.cs (5)
91if (exitCode.HasValue) 353if (exitCode.HasValue) 375if (exitCode.HasValue) 396if (exitCode.HasValue) 443if (errorExitCode.HasValue)
Commands\PackageSearch\JsonFormat\SearchResultPackagesConverter.cs (1)
56if (value.DownloadCount.HasValue)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
Utility\ProjectPackagesPrintUtility.cs (1)
161if (formattedCell.ForegroundColor.HasValue)
NuGet.Commands (8)
RestoreCommand\ContentFiles\ContentFileUtils.cs (2)
190if (filesEntry.CopyToOutput.HasValue) 195if (filesEntry.Flatten.HasValue)
RestoreCommand\RestoreCommand.cs (4)
632if (cacheFileAge.HasValue) { telemetry.TelemetryEvent[NoOpCacheFileAgeDays] = cacheFileAge.Value.TotalDays; } 995if (audit.DownloadDurationSeconds.HasValue) { telemetry.TelemetryEvent[AuditDurationDownload] = audit.DownloadDurationSeconds.Value; } 996if (audit.CheckPackagesDurationSeconds.HasValue) { telemetry.TelemetryEvent[AuditDurationCheck] = audit.CheckPackagesDurationSeconds.Value; } 997if (audit.GenerateOutputDurationSeconds.HasValue) { telemetry.TelemetryEvent[AuditDurationOutput] = audit.GenerateOutputDurationSeconds.Value; }
RestoreCommand\Utility\PackageSpecFactory.cs (1)
373if (restoreProjectStyle.HasValue)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
NuGet.Configuration (7)
Settings\Items\StoreClientCertItem.cs (6)
49if (!storeLocation.HasValue) 54if (!storeName.HasValue) 59if (!findBy.HasValue) 268if (storeLocation.HasValue) 273if (storeName.HasValue) 278if (findBy.HasValue)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
NuGet.DependencyResolver.Core (3)
Remote\RemoteDependencyWalker.cs (2)
356if (dependencyResult.HasValue) 375if (dependencyResult.HasValue)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
NuGet.Frameworks (1)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
NuGet.LibraryModel (1)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
NuGet.PackageManagement (4)
Audit\AuditCheckResult.cs (3)
70if (DownloadDurationInSeconds.HasValue) 74if (CheckPackagesDurationInSeconds.HasValue) 79if (SourcesWithVulnerabilities.HasValue)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
NuGet.Packaging (6)
PackageArchiveReader.cs (1)
410if (!_isSigned.HasValue)
Signing\Timestamp\Rfc3161TimestampRequestNetstandard21Wrapper.cs (1)
85return normalizedNonce.HasValue ? normalizedNonce.Value.ToArray() : null;
Signing\Timestamp\Rfc3161TimestampTokenInfoNetstandard21Wrapper.cs (1)
61if (nonce.HasValue)
Signing\Timestamp\Rfc3161TimestampVerificationUtility.cs (1)
47if (!tstInfo.AccuracyInMicroseconds.HasValue)
Signing\Verification\SignatureTrustAndValidityVerificationProvider.cs (1)
295return summary.SignatureType != SignatureType.Repository && summary.ExpirationTime.HasValue;
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
NuGet.ProjectModel (3)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
1109if (projectStyle.HasValue)
LockFile\AssetsLogMessage.cs (1)
36if (value.HasValue)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
NuGet.Protocol (17)
Converters\PackageVulnerabilityInfoConverter.cs (1)
34if (value.HasValue && value.Value >= (int)PackageVulnerabilitySeverity.Low && value.Value <= (int)PackageVulnerabilitySeverity.Critical)
LegacyFeed\V2FeedPackageInfo.cs (1)
223return !Published.HasValue || Published.Value.Year > 1901;
LegacyFeed\V2FeedQueryBuilder.cs (2)
201if (!top.HasValue) 211if (!skip.HasValue)
LocalRepositories\LocalPackageSearchResource.cs (1)
137return (pos.HasValue && pos.Value > -1);
Plugins\Logging\EnvironmentVariablesLogMessage.cs (3)
36if (_handshakeTimeout.HasValue) 41if (_idleTimeout.HasValue) 46if (_requestTimeout.HasValue)
Plugins\Logging\PluginInstanceLogMessage.cs (1)
36if (_processId.HasValue)
Plugins\Logging\TaskLogMessage.cs (1)
38if (_currentTaskId.HasValue)
Plugins\Messages\Progress.cs (1)
36if (percentage.HasValue &&
Plugins\OutboundRequestContext`1.cs (2)
111if (timeout.HasValue) 166if (_timeout.HasValue && _isKeepAlive)
Plugins\PluginProcess.cs (2)
191if (!_exitCode.HasValue) 205if (!_id.HasValue)
SourceCacheContext.cs (1)
80if (maxAge.HasValue)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
NuGet.Resolver (1)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
NuGet.Versioning (1)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
64if (o.HasValue)
PresentationCore (199)
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
83if (hwnd.HasValue)
MS\Win32\UnsafeNativeMethodsPenimc.cs (3)
243Invariant.Assert(!_wispManagerKey.HasValue || _wispManagerKey.Value == latestKey); 253if (!_wispManagerLocked && _wispManagerKey.HasValue) 265if (_wispManagerLocked && _wispManagerKey.HasValue)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
1800command.IsEnabled = (uint) (clip.HasValue ? 1 : 0); 1802if (clip.HasValue)
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
204if (!_isPointerStackEnabled.HasValue)
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
309if (gesture.HasValue)
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
71if (!unit.HasValue)
System\Windows\InterOp\HwndSource.cs (1)
2195if(!_defaultAcquireHwndFocusInMenuMode.HasValue)
System\Windows\InterOp\HwndTarget.cs (6)
321if (!AppManifestProcessDpiAwareness.HasValue) 417else if (ProcessDpiAwareness.HasValue) 1217if (_sessionId.HasValue && (_sessionId.Value != lparam.ToInt32())) 2036if (ProcessDpiAwareness.HasValue) 2049if (ProcessDpiAwareness.HasValue) 2062if (ProcessDpiAwareness.HasValue)
System\Windows\Media\Animation\AnimationStorage.cs (1)
808else if (animation.BeginTime.HasValue)
System\Windows\Media\Animation\Clock.cs (54)
117if (_beginTime.HasValue) 601if (CanSlip && (IsRoot || _timeline.BeginTime.HasValue)) 673(!InternalNextTickNeededTime.HasValue || 674(_parent.InternalNextTickNeededTime.HasValue && _parent.InternalNextTickNeededTime.Value < InternalNextTickNeededTime.Value))) 1241if (expirationTime.HasValue) 1786if (_rootData.PendingSeekDestination.HasValue && !HasDescendantsWithUnresolvedDuration) 1833if (_beginTime.HasValue) 1839if (_currentIterationBeginTime.HasValue) // One of our descendants has set this flag on us 1847if (_rootData.PendingSpeedRatio.HasValue) 1859Debug.Assert(_beginTime.HasValue); 1864if (_currentIterationBeginTime.HasValue) 1912if (HasDesiredFrameRate && InternalNextTickNeededTime.HasValue) 1941Debug.Assert(_beginTime.HasValue); 2038if (_currentClockState == ClockState.Filling && repeatBehavior.HasCount && !_currentIterationBeginTime.HasValue) 2080if (_currentIterationBeginTime.HasValue) 2157if (!InternalNextTickNeededTime.HasValue || proposedNextTickTime < InternalNextTickNeededTime.Value) 2169&& expirationTime.HasValue 2187Debug.Assert(_currentIterationBeginTime.HasValue, "ComputeCurrentIterationWithGrow should only be called when _currentIterationBeginTime has a value."); 2215if (_currentClockState == ClockState.Filling && expirationTime.HasValue && _currentIterationBeginTime >= expirationTime) 2234newIteration = _currentIteration.HasValue ? iterationIncrement + (_currentIteration.Value - 1) 2253Debug.Assert(_beginTime.HasValue); 2263else if ( expirationTime.HasValue 2516if (CanGrow && _currentIterationBeginTime.HasValue && _currentIteration.HasValue) 2518Debug.Assert(_beginTime.HasValue); // _currentIterationBeginTime.HasValue implies _beginTime.HasValue 2564if (_beginTime.HasValue 2573if (expirationTime.HasValue) 2584if (!expirationTime.HasValue // If activePeriod extends forever, 2589if (expirationTime.HasValue) 2647if (!_beginTime.HasValue) 2649Debug.Assert(!_currentIterationBeginTime.HasValue, "_currentIterationBeginTime should not have a value when _beginTime has no value."); 2654Debug.Assert(_beginTime.HasValue); 2658if (effectiveDuration.HasValue) 2798Debug.Assert(endOfActivePeriod.HasValue); 2898Debug.Assert(parentTime.HasValue); // If parent isn't stopped, it must have valid time and speed 2899Debug.Assert(parentSpeed.HasValue); 2925Debug.Assert(parentTime.HasValue); // Cannot be true unless parent is stopped 2946Debug.Assert(_beginTime.HasValue); 2947Debug.Assert(parentTime.HasValue); 2995Debug.Assert(_beginTime.HasValue); 3031if (expirationTime.HasValue) 3036(!timeUntilNextBoundary.HasValue || timeUntilExpiration < timeUntilNextBoundary.Value)) 3046if (timeUntilNextBoundary.HasValue) 3171if (_beginTime.HasValue && currentParentTimePT >= _beginTime.Value) 3189if (!expirationTimePT.HasValue || currentParentTimePT < expirationTimePT.Value) 3198!syncClockEffectiveDurationST.HasValue || ourSyncTimeST < syncClockEffectiveDurationST) 3232if (!previousSyncParentTimeSPT.HasValue 3248if (_currentIterationBeginTime.HasValue) 3318if (effectiveDurationST.HasValue && 3362if (_currentIterationBeginTime.HasValue) 3579if (desiredFrameRate.HasValue) 3972Debug.Assert(syncClock.IsRoot || syncClock._timeline.BeginTime.HasValue); // Only roots may later validate their _beginTime 4011if (_syncClockEffectiveDuration.HasValue) // If the sync clock has a finite duration 4061Debug.Assert(_syncClockBeginTime.HasValue); // This should never be queried on a root without beginTime
System\Windows\Media\Animation\ClockGroup.cs (8)
139&& child._timeline.BeginTime.HasValue) 197if (currentDesiredFrameRate.HasValue) 268if(!InternalNextTickNeededTime.HasValue || 269(enumerator.Current.InternalNextTickNeededTime.HasValue && 276if (InternalNextTickNeededTime.HasValue && 277(!previousTickNeededTime.HasValue || previousTickNeededTime > InternalNextTickNeededTime)) 313if (!InternalNextTickNeededTime.HasValue || 314(_children[c].InternalNextTickNeededTime.HasValue && _children[c].InternalNextTickNeededTime < InternalNextTickNeededTime))
System\Windows\Media\Animation\Generated\ByteAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\ColorAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\DecimalAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\DoubleAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\Int16Animation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\Int32Animation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\Int64Animation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\Point3DAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\PointAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\RectAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\SingleAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\SizeAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Generated\VectorAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\TimeIntervalCollection.cs (11)
1156Debug.Assert(!endTime.HasValue || beginTime <= endTime); // Ensure legitimate begin/end clipping parameters 1159Debug.Assert(!endTime.HasValue || endTime >= _nodeTime[0]); // EndTime must come at or after our first node (it can be infinite) 1161Debug.Assert(endTime.HasValue || fillDuration == TimeSpan.Zero); // Either endTime is finite, or it's infinite hence we cannot have any fill zone 1162Debug.Assert(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || (endTime.HasValue && beginTime == endTime)); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime 1172|| (endTime.HasValue && fillDuration.HasTimeSpan // ...the active and fill periods don't stretch forever, and... 1179if (endTime.HasValue && beginTime == endTime) // Degenerate case when our active period is a single point; project only the point 1197if (endTime.HasValue) 1264while(_current < _count && (!endTime.HasValue || CurrentNodeTime < endTime)) // Copy the main set of segments, transforming them 1282Debug.Assert(endTime.HasValue && CurrentNodeTime >= endTime.Value); 1365if (includeMaxPoint && activeDuration.HasValue && CurrentNodeTime == activeDuration) 1522if (includeMaxPoint && activeDuration.HasValue && NextNodeTime == activeDuration) // Exceptional end case: we are exactly at the last point
System\Windows\Media\Animation\Timeline.cs (1)
365return (!desiredFrameRate.HasValue || desiredFrameRate.Value > 0);
System\Windows\Media\Animation\TimeManager.cs (1)
760if (nextTickNeededTime.HasValue)
System\Windows\Media\Effects\ShaderEffect.cs (11)
476if (!list[position].HasValue) 503if (!_samplerData[position].HasValue) 517if (oldSampler.HasValue) 619if (v.HasValue) 636if (v.HasValue) 653if (v.HasValue) 674if (ssn.HasValue) 696if (ssn.HasValue) 732if (v.HasValue) 755if (ssn.HasValue) 792if (ssn.HasValue)
System\Windows\Media\Imaging\InteropBitmapSource.cs (2)
260if (dirtyRect.HasValue) 293bool useDirtyRect = dirtyRect.HasValue;
System\Windows\Media\Visual.cs (4)
591if (scrollClip.HasValue) 1119if (scrollClip.HasValue) 2089if (scrollClip.HasValue && !scrollClip.Value.Contains(hitPoint)) 2290if (scrollClip.HasValue)
PresentationFramework (108)
MS\Internal\Data\IndexedEnumerable.cs (1)
175if (_cachedIsEmpty.HasValue)
MS\Internal\Data\PropertyPathWorker.cs (1)
78if (!_isDBNullValidForUpdate.HasValue)
MS\Internal\Documents\TextBoxView.cs (1)
1554if (selectionRenderRange.HasValue)
MS\Internal\Ink\InkCanvasSelection.cs (1)
492if ( _activeSelectionHitResult.HasValue )
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (5)
183if (owner.SelectedDate.HasValue && DateTimeHelper.CompareYearMonth(owner.SelectedDate.Value, owner.DisplayDateInternal) == 0) 508if( !nextDate.HasValue || (startAfterDatePeer != null && nextDate <= startAfterDatePeer.Date) ) 531if (nextDate.HasValue) 565if (!OwningCalendar.SelectedDates.MaximumDate.HasValue || OwningCalendar.SelectedDates.MaximumDate <= startDate) 570if (OwningCalendar.SelectedDates.MinimumDate.HasValue && startDate < OwningCalendar.SelectedDates.MinimumDate)
System\Windows\Controls\Calendar.cs (18)
220if (c.DisplayDateStart.HasValue && (date < c.DisplayDateStart.Value)) 224else if (c.DisplayDateEnd.HasValue && (date > c.DisplayDateEnd.Value)) 276if (date.HasValue) 278if (c.DisplayDateStart.HasValue && (date.Value < c.DisplayDateStart.Value)) 284if (maxSelectedDate.HasValue && (date.Value < maxSelectedDate.Value)) 338if (date.HasValue) 341if (minSelectedDate.HasValue && (date.Value > minSelectedDate.Value)) 550if (!addedDate.HasValue) 556if (addedDate.HasValue && !(c.SelectedDates.Count > 0 && c.SelectedDates[0] == addedDate.Value)) 566if (addedDate.HasValue) 939if (newDate.HasValue) 984if (date.HasValue) 1019if (nextDate.HasValue) 1028if (nextDate.HasValue) 1177if (selectedMonth.HasValue) 1190if (selectedYear.HasValue) 1219if (c.SelectedDate.HasValue && DateTimeHelper.CompareYearMonth(c.SelectedDate.Value, c.DisplayDateInternal) == 0) 1574if (!this.HoverStart.HasValue)
System\Windows\Controls\DataGrid.cs (1)
7143if (currentSortDirection.HasValue &&
System\Windows\Controls\DataGridColumnCollection.cs (1)
1064if (!_averageColumnWidth.HasValue)
System\Windows\Controls\DatePicker.cs (8)
447if (dp.SelectedDate.HasValue) 466if (addedDate.HasValue) 471if (removedDate.HasValue) 482string addedDateString = addedDate.HasValue ? dp.DateTimeToString(addedDate.Value) : ""; 483string removedDateString = removedDate.HasValue ? dp.DateTimeToString(removedDate.Value) : ""; 971if (e.AddedItems.Count > 0 && this.SelectedDate.HasValue && DateTime.Compare((DateTime)e.AddedItems[0], this.SelectedDate.Value) != 0) 983if (!this.SelectedDate.HasValue) 1213if (this.SelectedDate.HasValue)
System\Windows\Controls\DateTimeHelper.cs (6)
59if (target.HasValue) 195if (date.HasValue && format != null) 225if (date.HasValue && format != null) 238if (date.HasValue && format != null) 251if (date.HasValue && format != null) 268if (date.HasValue && format != null)
System\Windows\Controls\FlowDocumentReader.cs (1)
1296if(_findButton != null && _findButton.IsChecked.HasValue && _findButton.IsChecked.Value != enable)
System\Windows\Controls\Grid.cs (2)
1921if (!(chooseMin.HasValue)) 2529if (!(chooseMin.HasValue))
System\Windows\Controls\ItemContainerGenerator.cs (1)
1109if (!isLikely.HasValue)
System\Windows\Controls\Primitives\CalendarItem.cs (9)
254this.Owner.HoverEnd.HasValue) 506if (this.Owner.HoverStart.HasValue) 588if (shift && lastDate.HasValue) 693if (!this.Owner.HoverStart.HasValue) 715if (!this.Owner.HoverStart.HasValue) 822if (this.Owner.HoverStart.HasValue) 1053if (dateToAdd.HasValue) 1122if (owner.HoverStart.HasValue && owner.HoverEnd.HasValue)
System\Windows\Controls\Primitives\Popup.cs (2)
3510if (HwndTarget.IsProcessPerMonitorDpiAware.HasValue) 3557if (screenOrigin.HasValue)
System\Windows\Controls\Primitives\Selector.cs (1)
266if (isSynchronizedWithCurrentItem.HasValue)
System\Windows\Controls\Primitives\ToggleButton.cs (3)
142SetValue(IsCheckedProperty, value.HasValue ? BooleanBoxes.Box(value.Value) : null); 308return SR.Format(SR.ToStringFormatString_ToggleButton, typeText, contentText, isChecked.HasValue ? isChecked.Value.ToString() : "null"); 333isChecked = IsChecked.HasValue; // HasValue returns true if IsChecked==false
System\Windows\Controls\SelectedDatesCollection.cs (8)
50if (!_minimumDate.HasValue) 77if (!_maximumDate.HasValue) 174if (index == 0 && !(this._owner.SelectedDate.HasValue && DateTime.Compare(this._owner.SelectedDate.Value, item) == 0)) 285if (index == 0 && !(this._owner.SelectedDate.HasValue && DateTime.Compare(this._owner.SelectedDate.Value, item) == 0)) 385if (!this._owner.SelectedDate.HasValue || DateTimeHelper.CompareDays(this._owner.SelectedDate.Value, date) != 0) 474if ((!_maximumDate.HasValue) || (date > _maximumDate.Value)) 479if ((!_minimumDate.HasValue) || (date < _minimumDate.Value)) 504while (rangeStart.HasValue && DateTime.Compare(end, rangeStart.Value) != -increment);
System\Windows\Controls\VirtualizingStackPanel.cs (14)
7883if (AreContainersUniformlySized.HasValue) 7952if (UniformOrAverageContainerSize.HasValue) 9819if (lastPagePixelSize.HasValue && !lastPageSafeOffset.HasValue && 9931if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.X)) 9959if (!lastPageSafeOffset.HasValue || computedViewportOffset.X < (double)lastPageSafeOffset) 10148if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.Y)) 10176if (!lastPageSafeOffset.HasValue || computedViewportOffset.Y < (double)lastPageSafeOffset) 10645lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.X, (double)lastPageSafeOffset) : computedViewportOffset.X; 10747if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.X)) 10776lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.Y, (double)lastPageSafeOffset) : computedViewportOffset.Y; 10878if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.Y)) 12863writer.Write(_uniformOrAverageContainerSize.HasValue ? (double)_uniformOrAverageContainerSize : -1.0d); 12864writer.Write(_uniformOrAverageContainerPixelSize.HasValue ? (double)_uniformOrAverageContainerPixelSize : -1.0d);
System\Windows\Data\BindingListCollectionView.cs (1)
1990if (!_itemsRaisePropertyChanged.HasValue)
System\Windows\Documents\Hyperlink.cs (1)
828if (!s_shouldPreventUriSpoofing.HasValue)
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
587if ((_changed == null) && (_eventCookie.HasValue))
System\Windows\Markup\WpfXamlLoader.cs (1)
245if (dependencyObject != null && stack.CurrentFrame.XmlSpace.HasValue)
System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (6)
359if (From.HasValue) 361if (To.HasValue) 368else if (By.HasValue) 382else if (To.HasValue) 388else if (By.HasValue) 414if (typedValue.HasValue)
System\Windows\Media\Animation\Storyboard.cs (4)
1310if(currentGlobalSpeed.HasValue) 1359if(currentIteration.HasValue) 1407if(currentProgress.HasValue) 1495if(currentTime.HasValue)
System\Windows\Shell\WindowChromeWorker.cs (1)
747if (wp.HasValue)
System\Windows\Standard\NativeMethods.cs (1)
1410if (!_hwnd.HasValue || _hwnd.Value == IntPtr.Zero)
System\Windows\VisualStateManager.cs (6)
452if (targetColor.HasValue) 461if (targetDouble.HasValue) 471if (targetPoint.HasValue) 594return ca.From.HasValue ? ca.From : ca.To; 617return da.From.HasValue ? da.From : da.To; 640return pa.From.HasValue ? pa.From : pa.To;
System\Windows\Window.cs (2)
2509if (topLeftPointHelper.ScreenTopLeft.HasValue) 7785if (HwndTarget.IsProcessPerMonitorDpiAware.HasValue)
PresentationUI (4)
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (1)
157control?.Text = (!date.HasValue) ?
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
441xpsDigitalSignature.Id.HasValue &&
MS\Internal\Documents\RMPermissions.cs (1)
143if (!date.HasValue ||
MS\Internal\Documents\RMPublishingDialog.cs (1)
267ValidUntil.HasValue)
ReachFramework (5)
AlphaFlattener\MetroDevice.cs (1)
795if(packet.PageSize.HasValue)
AlphaFlattener\Utility.cs (2)
2362if (checkRectangular.HasValue) 2416if (checkRectangular.HasValue)
Serialization\Manager\ReachSerializationUtils.cs (2)
1184printTicket.PageMediaSize.Width.HasValue && 1185printTicket.PageMediaSize.Height.HasValue)
Roslyn.Diagnostics.Analyzers (28)
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
119reuseInfoOpt.HasValue && 186if (!map.TryGetValue(document.Id, out var reuseInfoOpt) || !reuseInfoOpt.HasValue)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (2)
43Debug.Assert(depthOfInheritance.HasValue == (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace || symbol.Kind == SymbolKind.NamedType)); 160if (DepthOfInheritance.HasValue)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
173if (!effectiveSeverity.HasValue) 223return overriddenSeverity.HasValue ? overriddenSeverity.Value.ToDiagnosticSeverity() : rule.DefaultSeverity;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (3)
14=> !contextFilterSpan.HasValue || span.IntersectsWith(contextFilterSpan.Value); 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 178Contract.ThrowIfFalse(context.FilterSpan.HasValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
154if (providerAndTree.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SourceTextExtensions_SharedWithCodeStyle.cs (1)
22if (!linePosition.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (3)
50return firstOffset.HasValue 61return lastOffset.HasValue && lastOffset.Value < lineText.Length 195if (firstNonWhitespaceChar.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (4)
33Debug.Assert(valueUsageInfoOpt.HasValue ^ typeOrNamespaceUsageInfoOpt.HasValue); 46=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsReadFrom(); 49=> ValueUsageInfoOpt.HasValue && ValueUsageInfoOpt.Value.IsWrittenTo();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
787return span.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
241if (isUserConfiguredGeneratedCode.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
34return firstNonWhitespaceOffset.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
30if (span.HasValue && !HasImportThatIntersectsWithSpan(span.Value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
26severity.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
26capitalization.Value.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
112if (accessibility.HasValue && !ApplicableAccessibilityList.Any(static (k, accessibility) => k == accessibility, accessibility))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (2)
46if (result.HasValue) 91if (result.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
244if (desiredIndex.HasValue)
Roslyn.Diagnostics.CSharp.Analyzers (48)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
45return typeParameters.HasValue && typeParameters.Value.Any(typeParameter => typeParameter.Identifier.ValueText == name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (2)
25if (!tokenRange.HasValue || tokenRange.Value.Item2 == endToken) 42if (!tokenRange.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
114return !deconstructionInfoOpt.HasValue || !deconstructionInfoOpt.Value.Nested.IsEmpty || deconstructionInfoOpt.Value.Method != null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
34target.HasValue ? AttributeTargetSpecifier(target.Value) : null, 54target.HasValue
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
323if (target.HasValue && !target.Value.IsValidAttributeTarget())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2261(castExpression.Expression.IsMissing || castExpression.CloseParenToken.TrailingTrivia.GetFirstNewLine().HasValue))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
68if (!firstNonWhitespacePosition.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (2)
192if (indentation.HasValue) 198if (alignmentTokenIndentation.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (37)
274if (previousToken.HasValue) 374if (previousToken.HasValue) 816if (previousToken.HasValue && previousToken.Value != arrayCreationExpression.NewKeyword) 822if (previousToken.HasValue && previousToken.Value.GetPreviousToken().Kind() == SyntaxKind.EqualsToken) 853if (previousToken.HasValue) 877if (previousToken.HasValue && previousToken.Value != attributeDeclaration.OpenBracketToken) 888if (previousToken.HasValue && previousToken.Value != attributeTargetSpecifier.ColonToken) 952Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != operatorToken); 959var onRightOfToken = right == expressionOpt || previousToken.HasValue; 1089if (previousToken.HasValue && previousToken.Value != castExpression.CloseParenToken) 1098if (previousToken.HasValue && previousToken.Value != catchDeclaration.OpenParenToken) 1107if (previousToken.HasValue && previousToken.Value != catchFilterClause.OpenParenToken) 1120Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != coalesceExpression.OperatorToken); 1122var onRightSide = coalesceExpression.Right == expressionOpt || previousToken.HasValue; 1206if (previousToken.HasValue && previousToken.Value != doStatement.OpenParenToken) 1215if (previousToken.HasValue && previousToken.Value != equalsValue.EqualsToken) 1315if (previousToken.HasValue) 1324if (previousToken.HasValue && previousToken.Value != forEachStatementSyntax.InKeyword) 1355if (previousToken.HasValue && previousToken.Value != forStatement.FirstSemicolonToken) 1367if (previousToken.HasValue && previousToken.Value != ifStatement.OpenParenToken) 1385var parameterIndex = previousToken.HasValue 1512var parameterIndex = previousToken.HasValue 1676if (previousToken.HasValue && previousToken.Value != lockStatement.OpenParenToken) 1685if (previousToken.HasValue && previousToken.Value != lambdaExpression.ArrowToken) 1716if (previousTokenOpt.HasValue && previousTokenOpt.Value != memberDeclarator.NameEquals.EqualsToken) 1968if (previousToken.HasValue) 1984Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != prefixUnaryExpression.OperatorToken); 2040Contract.ThrowIfTrue(previousToken.HasValue && previousToken.Value != awaitExpression.AwaitKeyword); 2062if (previousToken.HasValue && (previousToken.Value != yieldStatement.ReturnOrBreakKeyword || yieldStatement.ReturnOrBreakKeyword.IsKind(SyntaxKind.BreakKeyword))) 2103if (previousToken.HasValue && previousToken.Value != returnStatement.ReturnKeyword) 2189if (previousToken.HasValue) 2206if (previousToken.HasValue && previousToken.Value != switchStatement.OpenParenToken) 2226if (previousToken.HasValue && previousToken.Value != throwExpression.ThrowKeyword) 2235if (previousToken.HasValue && previousToken.Value != throwStatement.ThrowKeyword) 2244if (previousToken.HasValue && previousToken.Value != usingStatement.OpenParenToken) 2449if (previousToken.HasValue && previousToken.Value != whenClause.WhenKeyword) 2458if (previousToken.HasValue && previousToken.Value != whileStatement.OpenParenToken)
Roslyn.Diagnostics.VisualBasic.Analyzers (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Rules\ElasticTriviaFormattingRule.vb (1)
215If Not lines.HasValue Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\AttributeGenerator.vb (1)
39If(target.HasValue, SyntaxFactory.AttributeTarget(target.Value), Nothing),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
331If target.HasValue AndAlso Not target.Value.IsValidAttributeTarget() Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.Indenter.vb (4)
56If triviaOpt.HasValue Then 72If tokenOpt.HasValue Then 94If tokenOpt.HasValue Then 122If indentation.HasValue Then
rzc (4)
DefaultRequestDispatcher.cs (2)
42if (keepAlive.HasValue) 261if (result.KeepAlive.HasValue)
MetadataCache.cs (1)
29if (timestamp.HasValue && timestamp.Value == entry.Timestamp)
ServerCommand.cs (1)
31if (keepAlive.HasValue)
Shared (6)
Data.Validation\LengthAttribute.cs (3)
101if (MaximumLength.HasValue && MinimumLength >= MaximumLength) 156if (MaximumLength.HasValue) 180var validationMessage = MaximumLength.HasValue
Data.Validation\TimeSpanAttribute.cs (3)
28public TimeSpan Minimum => _minMs.HasValue ? TimeSpan.FromMilliseconds((double)_minMs) : TimeSpan.Parse(_min!, CultureInfo.InvariantCulture); 37if (_maxMs.HasValue) 142if (max.HasValue)
System.CommandLine (2)
Invocation\InvocationPipeline.cs (1)
60if (timeout.HasValue)
ParseResult.cs (1)
386if (position.HasValue)
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\DisplayAttribute.cs (3)
208if (!_autoGenerateField.HasValue) 237if (!_autoGenerateFilter.HasValue) 265if (!_order.HasValue)
System.Data.Common (5)
System\Data\Common\DbDataAdapter.cs (1)
1404if ((null == batchCommands[bc]._errors) && batchCommands[bc]._recordsAffected.HasValue)
System\Data\Common\DbProviderFactory.cs (2)
24if (!_canCreateDataAdapter.HasValue) 40if (!_canCreateCommandBuilder.HasValue)
System\Data\DataTableExtensions.cs (2)
86if (options.HasValue) 160if (options.HasValue)
System.Data.Odbc (1)
System\Data\Odbc\OdbcDataReader.cs (1)
587if (!info._dbtype.HasValue)
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Metrics\CounterAggregator.cs (1)
110if (_prevValue.HasValue)
System\Diagnostics\Metrics\MetricsEventSource.cs (3)
829rateStats.Delta.HasValue ? rateStats.Delta.Value.ToString(CultureInfo.InvariantCulture) : "", rateStats.Value.ToString(CultureInfo.InvariantCulture), instrumentId); 834rateStats.Delta.HasValue ? rateStats.Delta.Value.ToString(CultureInfo.InvariantCulture) : "", rateStats.Value.ToString(CultureInfo.InvariantCulture), instrumentId); 840lastValueStats.LastValue.HasValue ? lastValueStats.LastValue.Value.ToString(CultureInfo.InvariantCulture) : "", instrumentId);
System.Diagnostics.Process (12)
System\Diagnostics\Process.cs (1)
206if (!_startTime.HasValue)
System\Diagnostics\Process.Multiplexing.cs (2)
150int timeoutMs = timeout.HasValue 634int timeoutMs = timeout.HasValue
System\Diagnostics\Process.Scenarios.cs (2)
111return timeout.HasValue 257if (timeout.HasValue)
System\Diagnostics\ProcessManager.Linux.cs (2)
296Debug.Assert(procSelfPid.HasValue); 298_procMatchesPidNamespace = !procSelfPid.HasValue || procSelfPid == Environment.ProcessId ? NullableBool.True : NullableBool.False;
System\Diagnostics\ProcessThread.cs (2)
71if (!_priorityBoostEnabled.HasValue) 96if (!_priorityLevel.HasValue)
System\Diagnostics\ProcessUtils.Unix.cs (3)
122Debug.Assert(userId.HasValue == groupId.HasValue, "userId and groupId both need to have values, or both need to be null."); 123if (!userId.HasValue)
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
84if (bestPointSoFar.HasValue)
System.DirectoryServices.AccountManagement (16)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (1)
1298if (!dt.HasValue)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (1)
655return !date.HasValue ?
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
1227if (groupTypeValue.HasValue && ((groupTypeValue.Value & ADGroupScope.Local) == ADGroupScope.Local))
System\DirectoryServices\AccountManagement\AuthenticablePrincipal.cs (2)
57if (!value.HasValue) 445if (val.HasValue)
System\DirectoryServices\AccountManagement\AuthZSet.cs (1)
335if (!_localMachineIsDC.HasValue)
System\DirectoryServices\AccountManagement\Group.cs (3)
78if (!value.HasValue) 124if (!value.HasValue) 360if (_isSmallGroup.HasValue)
System\DirectoryServices\AccountManagement\SAM\SAMQuerySet.cs (3)
626if (!valueToCompare.HasValue) 771if (!nullableStoreValue.HasValue) 774Debug.Assert(nullableStoreValue.HasValue);
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (1)
993if (value.HasValue)
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (3)
943if (!_isLSAM.HasValue) 947if (!_isLSAM.HasValue) 952Debug.Assert(_isLSAM.HasValue);
System.Formats.Asn1 (7)
System\Formats\Asn1\AsnDecoder.BitString.cs (1)
663Debug.Assert(contentsLength.HasValue);
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (3)
336if (!isZulu || !second.HasValue) 350if (!minute.HasValue) 361else if (!second.HasValue)
System\Formats\Asn1\AsnDecoder.OctetString.cs (1)
212Debug.Assert(contentLength.HasValue);
System\Formats\Asn1\AsnDecoder.Sequence.cs (1)
76if (length.HasValue)
System\Formats\Asn1\AsnDecoder.SetOf.cs (1)
85if (length.HasValue)
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.cs (1)
345if (_currentMajorType.HasValue)
System.Formats.Nrbf (1)
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (1)
89if (!isDataAvailable.HasValue)
System.Formats.Tar (2)
System\Formats\Tar\TarHelpers.Unix.cs (2)
65if (mode.HasValue) 85if (mode.HasValue)
System.IO.Compression (3)
System\IO\Compression\ZipArchive.cs (1)
494ZipArchiveEntry entry = compressionLevel.HasValue ?
System\IO\Compression\ZipArchiveEntry.cs (1)
83if (IsEncrypted && cd.AesExtraField.HasValue)
System\IO\Compression\ZipCryptoStream.cs (1)
155if (_crc32ForHeader.HasValue)
System.IO.Compression.ZipFile (3)
System\IO\Compression\ZipFile.Create.cs (1)
543if (compressionLevel.HasValue && !Enum.IsDefined(compressionLevel.Value))
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (2)
169entry = compressionLevel.HasValue 175entry = compressionLevel.HasValue
System.IO.Ports (3)
System\IO\Ports\SerialStream.Unix.cs (3)
697r.Complete(error.HasValue ? 707r.Complete(error.HasValue ? 954if (error.HasValue)
System.Linq (30)
System\Linq\Average.cs (4)
146if (value.HasValue) 154if (value.HasValue) 242if (value.HasValue) 250if (value.HasValue)
System\Linq\Max.cs (14)
58while (!value.HasValue); 89if (cur.HasValue & x > valueVal) 194while (!value.HasValue); 205if (cur.HasValue) 218if (cur.HasValue & x > valueVal) 294while (!value.HasValue); 301if (cur.HasValue && x > valueVal) 600while (!value.HasValue); 631if (cur.HasValue & x > valueVal) 715while (!value.HasValue); 726if (cur.HasValue) 739if (cur.HasValue & x > valueVal) 804while (!value.HasValue); 811if (cur.HasValue && x > valueVal)
System\Linq\Min.cs (12)
60while (!value.HasValue); 72if (cur.HasValue & x < valueVal) 179while (!value.HasValue); 190if (cur.HasValue) 273while (!value.HasValue); 280if (cur.HasValue && x < valueVal) 581while (!value.HasValue); 593if (cur.HasValue & x < valueVal) 684while (!value.HasValue); 695if (cur.HasValue) 768while (!value.HasValue); 775if (cur.HasValue && x < valueVal)
System.Linq.Parallel (13)
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (1)
119if (current.HasValue)
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (1)
116if (current.HasValue)
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (1)
120if (current.HasValue)
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (1)
120if (current.HasValue)
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (1)
120if (current.HasValue)
System\Linq\Parallel\QueryOperators\PartitionerQueryOperator.cs (1)
130Debug.Assert(_settings.DegreeOfParallelism.HasValue);
System\Linq\Parallel\QueryOperators\QueryOperator.cs (2)
179Debug.Assert(querySettings.DegreeOfParallelism.HasValue); 180Debug.Assert(querySettings.ExecutionMode.HasValue);
System\Linq\Parallel\QueryOperators\QuerySettings.cs (4)
127int? dop = this.DegreeOfParallelism.HasValue ? this.DegreeOfParallelism : settings2.DegreeOfParallelism; 129ParallelExecutionMode? executionMode = this.ExecutionMode.HasValue ? this.ExecutionMode : settings2.ExecutionMode; 130ParallelMergeOptions? mergeOptions = this.MergeOptions.HasValue ? this.MergeOptions : settings2.MergeOptions; 186Debug.Assert(settings.DegreeOfParallelism.HasValue);
System\Linq\Parallel\QueryOperators\ScanQueryOperator.cs (1)
59Debug.Assert(settings.DegreeOfParallelism.HasValue);
System.Linq.Queryable (1)
System\Linq\TypeHelper.cs (1)
23if (!definitionIsInterface.HasValue)
System.Net.Http (24)
System\Net\Http\Headers\CacheControlHeaderValue.cs (1)
62SetFlag(flag, value.HasValue);
System\Net\Http\Headers\HeaderUtilities.cs (1)
35if (value.HasValue)
System\Net\Http\Headers\HttpGeneralHeaders.cs (2)
160if (!chunked.HasValue) 166if (!close.HasValue)
System\Net\Http\Headers\HttpRequestHeaders.cs (1)
286if (!expectContinue.HasValue)
System\Net\Http\Headers\KnownHeader.Http2And3.cs (2)
15Http2EncodedName = http2StaticTableIndex.HasValue ? 19Http3EncodedName = http3StaticTableIndex.HasValue ?
System\Net\Http\Headers\RangeHeaderValue.cs (2)
75if (range.From.HasValue) sb.AppendSpanFormattable(range.From.GetValueOrDefault()); 77if (range.To.HasValue) sb.AppendSpanFormattable(range.To.GetValueOrDefault());
System\Net\Http\Headers\RangeItemHeaderValue.cs (6)
23if (!from.HasValue && !to.HasValue) 27if (from.HasValue) 31if (to.HasValue) 35if (from.HasValue && to.HasValue)
System\Net\Http\Headers\WarningHeaderValue.cs (1)
38_dateHasValue = date.HasValue;
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (1)
291return ReadChunkFromConnectionBuffer(maxBytesToRead: 0, cancellationRegistration: default).HasValue;
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (3)
507Debug.Assert(ex.ApplicationErrorCode.HasValue); 568Debug.Assert(ex.ApplicationErrorCode.HasValue); 695Debug.Assert(ex.ApplicationErrorCode.HasValue);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (4)
293Debug.Assert(ex.ApplicationErrorCode.HasValue); 317Debug.Assert(ex.ApplicationErrorCode.HasValue); 1348Debug.Assert(e.ApplicationErrorCode.HasValue); 1353Debug.Assert(e.ApplicationErrorCode.HasValue);
System.Net.Http.WinHttpHandler (4)
System\Net\Http\WinHttpHandler.cs (3)
662if (requestMessage.Headers.TransferEncodingChunked.HasValue && 671if (requestContent.Headers.ContentLength.HasValue) 751if (requestMessage.Content.Headers.ContentLength.HasValue)
System\Net\Http\WinHttpRequestCallback.cs (1)
187&& state.ExpectedBytesToRead.HasValue
System.Net.HttpListener (1)
System\Net\HttpListenerRequest.cs (1)
158if (!_keepAlive.HasValue)
System.Net.NameResolution (1)
System\Net\Dns.cs (1)
501Debug.Assert(!activityOrDefault.HasValue);
System.Net.Security (5)
System\Net\Security\TlsSession.cs (5)
2025if (fast.HasValue) 2031if (fast.HasValue) 2149if (fast.HasValue) 2231if (fast.HasValue) 2390if (fast.HasValue)
System.Net.ServerSentEvents (2)
System\Net\ServerSentEvents\SseParser_1.cs (2)
122if (sseItem.HasValue) 170if (sseItem.HasValue)
System.Net.WebProxy (1)
System\Net\WebProxy.cs (1)
291if (port.HasValue && proxyUri.IsAbsoluteUri)
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
695if (maskOffset.HasValue)
System.Private.CoreLib (26)
Internal\IntrinsicSupport\EqualityComparerHelpers.cs (3)
125if (x.HasValue) 127if (y.HasValue) 132if (y.HasValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (3)
95if (x.HasValue) 97if (y.HasValue) return Comparer<T>.Default.Compare(x.value, y.value); 100if (y.HasValue) return -1;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (3)
185if (x.HasValue) 187if (y.HasValue) return EqualityComparer<T>.Default.Equals(x.value, y.value); 190if (y.HasValue) return false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
4305if (!osThreadId.HasValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (1)
189if (options.UnixCreateMode.HasValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStreamOptions.cs (1)
142if (value.HasValue && ((value & ~FileSystem.ValidUnixFileModes) != 0))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Nullable.cs (7)
81if (n1.HasValue) 83if (n2.HasValue) return Comparer<T>.Default.Compare(n1.value, n2.value); 86if (n2.HasValue) return -1; 92if (n1.HasValue) 94if (n2.HasValue) return EqualityComparer<T>.Default.Equals(n1.value, n2.value); 97if (n2.HasValue) return false; 119/// <returns>A readonly reference to the location where the instance's <typeparamref name="T"/> value is stored. If the instance's <see cref="Nullable{T}.HasValue"/> is false, the current value at that location may be the default value.</returns>
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (4)
721if (parsedBaseOffset.HasValue) 731if (!parsedDaylightSavings.HasValue) 807if (result.HasValue && negative) 820if (timeOffset.HasValue)
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.Nullable.cs (1)
62map.AddMethod(type, "get_" + nameof(Nullable<int>.HasValue), Array.Empty<Type>(),
System\Reflection\Runtime\TypeInfos\RuntimeNamedTypeInfo.cs (1)
51if (guidFromAttributes.HasValue)
System\Runtime\InteropServices\NativeLibrary.NativeAot.cs (1)
30bool userSpecifiedSearchFlags = searchPath.HasValue;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
466return value.HasValue;
System.Private.TypeLoader (7)
Internal\Runtime\TypeLoader\TypeBuilderState.cs (1)
299public bool HasStaticConstructor => ClassConstructorPointer.HasValue;
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericMethodsLookup.cs (1)
32if (!_hashCode.HasValue)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericTypesLookup.cs (1)
31if (!_hashCode.HasValue)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.StaticsLookup.cs (3)
47return index.HasValue ? staticInfoLookup.GetIntPtrFromIndex(index.Value) : IntPtr.Zero; 86return index.HasValue ? staticInfoLookup.GetIntPtrFromIndex(index.Value) : IntPtr.Zero; 127return index.HasValue ? staticInfoLookup.GetIntPtrFromIndex(index.Value) : IntPtr.Zero;
Internal\TypeSystem\MethodDesc.Runtime.cs (1)
41if (!_isNonSharableCache.HasValue)
System.Private.Windows.Core (27)
Generated\361d1da7f942c932\Windows.Win32.UI_Shell_IDragSourceHelper_Extensions.g.cs (1)
37 winmdroot.Foundation.HRESULT __result = @this.InitializeFromWindow(hwnd, ppt.HasValue ? &pptLocal : null, pDataObject);
Generated\361d1da7f942c932\Windows.Win32.UI_Shell_IDragSourceHelper2_Extensions.g.cs (1)
37 winmdroot.Foundation.HRESULT __result = @this.InitializeFromWindow(hwnd, ppt.HasValue ? &pptLocal : null, pDataObject);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDragSourceHelper.g.cs (1)
111 winmdroot.Foundation.HRESULT __result = this.InitializeFromWindow(hwnd, ppt.HasValue ? &pptLocal : null, pDataObject);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDragSourceHelper2.g.cs (1)
98 winmdroot.Foundation.HRESULT __result = this.InitializeFromWindow(hwnd, ppt.HasValue ? &pptLocal : null, pDataObject);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvokeCore.GDI32.dll.g.cs (4)
174 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateDCW(pwszDriverLocal, pwszDeviceLocal, pszPortLocal, pdm.HasValue ? &pdmLocal : null); 259 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateEnhMetaFile(hdc, lpFilenameLocal, lprc.HasValue ? &lprcLocal : null, lpDescLocal); 318 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateICW(pszDriverLocal, pszDeviceLocal, pszPortLocal, pdm.HasValue ? &pdmLocal : null); 405 winmdroot.Foundation.BOOL __result = PInvokeCore.EnumEnhMetaFile(hdc, hmf, proc, param3, lpRect.HasValue ? &lpRectLocal : null);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvokeCore.USER32.dll.g.cs (1)
282 winmdroot.Foundation.BOOL __result = PInvokeCore.EnumDisplayMonitors(hdc, lprcClip.HasValue ? &lprcClipLocal : null, lpfnEnum, dwData);
System\Value.cs (18)
95if (value.HasValue) 121if (value.HasValue) 147if (value.HasValue) 173if (value.HasValue) 199if (value.HasValue) 225if (value.HasValue) 251if (value.HasValue) 277if (value.HasValue) 303if (value.HasValue) 329if (value.HasValue) 355if (value.HasValue) 381if (value.HasValue) 407if (value.HasValue) 433if (value.HasValue) 467if (!value.HasValue) 506if (!value.HasValue) 531if (value.HasValue) 591public static implicit operator Value(decimal? value) => value.HasValue ? new(value.Value) : new(value);
System.Reflection.Metadata (8)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (8)
227case TableIndex.Assembly : return _assemblyRow.HasValue ? 1 : 0; 254case TableIndex.Module : return _moduleRow.HasValue ? 1 : 0; 299rowCounts[(int)TableIndex.Assembly] = _assemblyRow.HasValue ? 1 : 0; 326rowCounts[(int)TableIndex.Module] = _moduleRow.HasValue ? 1 : 0; 370if (_moduleRow.HasValue) 400if (_assemblyRow.HasValue) 1925if (_moduleRow.HasValue) 2220if (_assemblyRow.HasValue)
System.Runtime.InteropServices.JavaScript (12)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.BigInt64.cs (1)
70if (value.HasValue)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Bool.cs (1)
70if (value.HasValue)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Byte.cs (1)
70if (value.HasValue)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Char.cs (1)
70if (value.HasValue)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.DateTime.cs (2)
70if (value.HasValue) 141if (value.HasValue)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Double.cs (1)
70if (value.HasValue)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Int16.cs (1)
70if (value.HasValue)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Int32.cs (1)
70if (value.HasValue)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Int52.cs (1)
78if (value.HasValue)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.IntPtr.cs (1)
70if (value.HasValue)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Single.cs (1)
70if (value.HasValue)
System.Security.Cryptography (61)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (1)
35if (Parameters.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
79if (UniversalString.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (1)
27if (NameAssigner.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (5)
69if (OtherName.HasValue) 96if (X400Address.HasValue) 121if (DirectoryName.HasValue) 139if (EdiPartyName.HasValue) 157if (IPAddress.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (1)
48if (KeyLength.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
19Debug.Assert(MacData.HasValue);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (1)
30if (MacData.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (5)
61if (Certificate.HasValue) 86if (ExtendedCertificate.HasValue) 111if (AttributeCertificateV1.HasValue) 136if (AttributeCertificateV2.HasValue) 161if (OtherCertificateFormat.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (1)
35if (Content.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (1)
37if (EncryptedContent.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (2)
55if (IssuerAndSerialNumber.HasValue) 64if (SubjectKeyIdentifier.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
36if (SignedAttributes.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (1)
46if (!digestValueLength.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
1135if (iterationCount <= 0 || (iterationLimit.HasValue && iterationCount > iterationLimit.Value))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (2)
76if (pfx.MacData.HasValue) 96if (pfx.MacData.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
242if (!encryptedData.EncryptedContentInfo.EncryptedContent.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9SigningTime.cs (1)
53if (!_lazySigningTime.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
641Debug.Assert(decoded.HasValue);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (6)
161if (pfxAsn.MacData.HasValue) 357if (workRemaining.HasValue) 410if (providerName.HasValue) 523if (!encryptedData.EncryptedContentInfo.EncryptedContent.HasValue) 541if (workRemaining.HasValue) 565if (!algorithmIdentifier.Parameters.HasValue)
System\Security\Cryptography\CngAlgorithmCore.cs (1)
89Debug.Assert(curve.HasValue);
System\Security\Cryptography\CngKey.Create.cs (2)
86if (creationParameters.ExportPolicy.HasValue) 92if (creationParameters.KeyUsage.HasValue)
System\Security\Cryptography\CngProperty.cs (1)
92if (!_lazyHashCode.HasValue)
System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs (1)
57if (PathLengthConstraint.HasValue)
System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml.cs (1)
37if (TemplateMinorVersion.HasValue)
System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml.cs (2)
27if (RequireExplicitPolicyDepth.HasValue) 33if (InhibitMappingDepth.HasValue)
System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs (1)
35if (PolicyQualifiers.HasValue)
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.manual.cs (2)
39if (IssuerUniqueId.HasValue || SubjectUniqueId.HasValue)
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (2)
111if (IssuerUniqueId.HasValue) 117if (SubjectUniqueId.HasValue)
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (2)
55if (UtcTime.HasValue) 64if (GeneralTime.HasValue)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
1032if (signatureAlgorithmAsn.Parameters.HasValue)
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
356if (signatureAlgorithmAsn.Parameters.HasValue)
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
153if (reason.HasValue)
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (1)
49if (signatureAlgorithmAsn.Parameters.HasValue)
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (1)
551if (decoded.DirectoryName.HasValue)
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (2)
89pathLengthConstraint.HasValue, 170hasPathLengthConstraint = constraints.PathLengthConstraint.HasValue;
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (2)
2025Debug.Assert(!decryptedPkcs8.HasValue); 2050if (decryptedPkcs8.HasValue)
System\Security\Cryptography\X509Certificates\X509Chain.cs (1)
147if (!verified.HasValue)
System\Security\Cryptography\X509Certificates\X509SubjectAlternativeNameExtension.cs (2)
96if (item.IPAddress.HasValue) 122if (item.IPAddress.HasValue)
System.Security.Cryptography.Cose (9)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
335bool shouldSlipAlgHeader = algHeaderValueToSlip.HasValue;
System\Security\Cryptography\Cose\CoseMessage.cs (5)
140if (arrayLength.HasValue ? arrayLength != CoseSign1Message.Sign1ArrayLength : 163return new CoseSign1Message(protectedHeader, unprotectedHeader, payload, signature, protectedHeaderAsBstr, tag.HasValue); 225if (arrayLength.HasValue ? arrayLength != CoseMultiSignMessage.MultiSignArrayLength : 248return new CoseMultiSignMessage(protectedHeaders, unprotectedHeaders, payload, signatures, encodedProtectedHeaders, tag.HasValue); 382if (length.HasValue ? length != CoseMultiSignMessage.CoseSignatureArrayLength :
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (1)
602CoseHelpers.WriteContent(writer, Content.GetValueOrDefault().Span, !Content.HasValue);
System\Security\Cryptography\Cose\CoseSign1Message.cs (1)
1018CoseHelpers.WriteContent(writer, Content.GetValueOrDefault().Span, !Content.HasValue);
System\Security\Cryptography\Cose\CoseSigner.cs (1)
176Debug.Assert(alg.HasValue, "Algorithm (alg) is a known header and should have been validated in Set[Encoded]Value()");
System.Security.Cryptography.Pkcs (85)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (3)
21if (originator.IssuerAndSerialNumber.HasValue) 32if (originator.SubjectKeyIdentifier.HasValue) 39if (originator.OriginatorKey.HasValue)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (3)
42if (data.OriginatorInfo.HasValue && data.OriginatorInfo.Value.CertificateSet != null) 59if (recipientInfo.Ktri.HasValue) 63else if (recipientInfo.Kari.HasValue)
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyAgree.cs (4)
43if (!rid.RKeyId.HasValue) 48if (!rid.RKeyId.Value.Date.HasValue) 67if (!rid.RKeyId.HasValue) 73if (!rid.RKeyId.Value.Other.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (1)
35if (Parameters.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
79if (UniversalString.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs (1)
27if (NameAssigner.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (5)
69if (OtherName.HasValue) 96if (X400Address.HasValue) 121if (DirectoryName.HasValue) 139if (EdiPartyName.HasValue) 157if (IPAddress.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (1)
48if (KeyLength.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
19Debug.Assert(MacData.HasValue);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (1)
30if (MacData.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (5)
61if (Certificate.HasValue) 86if (ExtendedCertificate.HasValue) 111if (AttributeCertificateV1.HasValue) 136if (AttributeCertificateV2.HasValue) 161if (OtherCertificateFormat.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (1)
35if (Content.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (1)
37if (EncryptedContent.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (2)
55if (IssuerAndSerialNumber.HasValue) 64if (SubjectKeyIdentifier.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
36if (SignedAttributes.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (1)
46if (!digestValueLength.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
1135if (iterationCount <= 0 || (iterationLimit.HasValue && iterationCount > iterationLimit.Value))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (2)
76if (pfx.MacData.HasValue) 96if (pfx.MacData.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
242if (!encryptedData.EncryptedContentInfo.EncryptedContent.HasValue)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9SigningTime.cs (1)
53if (!_lazySigningTime.HasValue)
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (1)
32if (OriginatorInfo.HasValue)
System\Security\Cryptography\Pkcs\Asn1\EssCertId.xml.cs (1)
28if (IssuerSerial.HasValue)
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (1)
59if (IssuerSerial.HasValue)
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (2)
55if (IssuerAndSerialNumber.HasValue) 64if (RKeyId.HasValue)
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (1)
35if (Ukm.HasValue)
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (3)
57if (IssuerAndSerialNumber.HasValue) 66if (SubjectKeyIdentifier.HasValue) 75if (OriginatorKey.HasValue)
System\Security\Cryptography\Pkcs\Asn1\OtherKeyAttributeAsn.xml.cs (1)
35if (KeyAttr.HasValue)
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (2)
29if (StatusString.HasValue) 51if (FailInfo.HasValue)
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (2)
55if (IssuerAndSerialNumber.HasValue) 64if (SubjectKeyIdentifier.HasValue)
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (2)
55if (Ktri.HasValue) 64if (Kari.HasValue)
System\Security\Cryptography\Pkcs\Asn1\RecipientKeyIdentifier.xml.cs (2)
29if (Date.HasValue) 35if (Other.HasValue)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161Accuracy.xml.cs (3)
28if (Seconds.HasValue) 34if (Millis.HasValue) 40if (Micros.HasValue)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (1)
64if (Nonce.HasValue)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampResp.xml.cs (1)
28if (TimeStampToken.HasValue)
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (4)
65if (Accuracy.HasValue) 84if (Nonce.HasValue) 90if (Tsa.HasValue) 306if (Accuracy.HasValue)
System\Security\Cryptography\Pkcs\CmsSignature.MLDsa.cs (1)
47if (signatureParameters.HasValue)
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (1)
59if (_expectedDigest.HasValue && _expectedDigest.Value != digestAlgorithmName)
System\Security\Cryptography\Pkcs\CmsSignature.SlhDsa.cs (1)
58if (signatureParameters.HasValue)
System\Security\Cryptography\Pkcs\KeyAgreeRecipientInfo.cs (1)
63if (!_lazyDate.HasValue)
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
264if (nonce.HasValue)
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (8)
370if (certId.HasValue && certId.Value.IssuerSerial != null) 381if (certId2.HasValue && certId2.Value.IssuerSerial != null) 481Debug.Assert(certId.HasValue || certId2.HasValue); 484if (certId.HasValue) 495if (certId.Value.IssuerSerial.HasValue) 510if (certId2.HasValue) 542if (certId2.Value.IssuerSerial.HasValue)
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (1)
161Debug.Assert(_tsaNameBytes.HasValue);
System\Security\Cryptography\Pkcs\SignedCms.cs (3)
93if (choice.Certificate.HasValue) 181if (content.HasValue) 411Debug.Assert(_heldContent.HasValue);
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
49if (_signedAttributesMemory.HasValue) 600if (additionalContent.HasValue) 784if (!additionalContent.HasValue)
System\Security\Cryptography\Pkcs\SubjectIdentifier.cs (1)
54if (issuerAndSerialNumber.HasValue)
System.ServiceModel.Federation (1)
System\ServiceModel\Federation\WsTrustTokenParameters.cs (1)
142if (value.HasValue)
System.ServiceModel.Http (4)
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (3)
137_contentLength = content.Headers.ContentLength.HasValue ? content.Headers.ContentLength.Value : -1; 179if (!content.Headers.ContentLength.HasValue) 315_contentLength = content.Headers.ContentLength.HasValue ? content.Headers.ContentLength.Value : -1;
System\ServiceModel\Channels\MessageContent.cs (1)
269if (_contentLength.HasValue)
System.ServiceModel.Primitives (2)
Internals\System\Runtime\Fx.cs (1)
44if (!s_isUap.HasValue)
System\ServiceModel\Channels\CreateSequenceResponse.cs (1)
109if (Expires.HasValue)
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
192if (value.HasValue && (value.Value.Milliseconds != 0 || value.Value.Seconds != 0 || value.Value.TotalMinutes < 0))
System.Text.Json (32)
parent\Common\JsonSeparatorNamingPolicy.cs (3)
78if (separator.HasValue) 93if (separator.HasValue) 124if (separator.HasValue)
System\Text\Json\Nodes\JsonArray.cs (3)
80return jsonElement.HasValue 270if (list is null && jsonElement.HasValue) 300if (jsonElement.HasValue)
System\Text\Json\Nodes\JsonNode.cs (1)
37if (!_options.HasValue && Parent is not null)
System\Text\Json\Nodes\JsonObject.cs (4)
89return jsonElement.HasValue 110return item.HasValue ? item.Value.Key : string.Empty; 155if (dictionary is null && jsonElement.HasValue) 177if (dictionary is null && jsonElement.HasValue)
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
250if (jsonElement.HasValue)
System\Text\Json\Nodes\JsonValue.CreateOverloads.cs (16)
25public static JsonValue? Create(bool? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<bool>(value.Value, JsonMetadataServices.BooleanConverter, options) : null; 41public static JsonValue? Create(byte? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<byte>(value.Value, JsonMetadataServices.ByteConverter, options) : null; 57public static JsonValue? Create(char? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<char>(value.Value, JsonMetadataServices.CharConverter, options) : null; 73public static JsonValue? Create(DateTime? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<DateTime>(value.Value, JsonMetadataServices.DateTimeConverter, options) : null; 89public static JsonValue? Create(DateTimeOffset? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<DateTimeOffset>(value.Value, JsonMetadataServices.DateTimeOffsetConverter, options) : null; 105public static JsonValue? Create(decimal? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<decimal>(value.Value, JsonMetadataServices.DecimalConverter, options) : null; 121public static JsonValue? Create(double? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<double>(value.Value, JsonMetadataServices.DoubleConverter, options) : null; 137public static JsonValue? Create(Guid? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<Guid>(value.Value, JsonMetadataServices.GuidConverter, options) : null; 153public static JsonValue? Create(short? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<short>(value.Value, JsonMetadataServices.Int16Converter, options) : null; 169public static JsonValue? Create(int? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<int>(value.Value, JsonMetadataServices.Int32Converter, options) : null; 185public static JsonValue? Create(long? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<long>(value.Value, JsonMetadataServices.Int64Converter, options) : null; 203public static JsonValue? Create(sbyte? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<sbyte>(value.Value, JsonMetadataServices.SByteConverter, options) : null; 219public static JsonValue? Create(float? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<float>(value.Value, JsonMetadataServices.SingleConverter, options) : null; 246public static JsonValue? Create(ushort? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<ushort>(value.Value, JsonMetadataServices.UInt16Converter, options) : null; 264public static JsonValue? Create(uint? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<uint>(value.Value, JsonMetadataServices.UInt32Converter, options) : null; 282public static JsonValue? Create(ulong? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<ulong>(value.Value, JsonMetadataServices.UInt64Converter, options) : null;
System\Text\Json\Nodes\JsonValueOfT.cs (1)
57internal static bool TypeIsSupportedPrimitive => s_valueKind.HasValue;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (3)
579if (!EffectiveNumberHandling.HasValue && Options.NumberHandling != JsonNumberHandling.Strict) 600if (!handling.HasValue && Options.NumberHandling != JsonNumberHandling.Strict) 607else if (NumberHandling.HasValue && NumberHandling != JsonNumberHandling.Strict)
System.Text.Json.SourceGeneration (5)
JsonSourceGenerator.Emitter.cs (2)
861string ignoreConditionNamedArg = property.DefaultIgnoreCondition.HasValue 2403=> numberHandling.HasValue
parent\Common\JsonSeparatorNamingPolicy.cs (3)
78if (separator.HasValue) 93if (separator.HasValue) 124if (separator.HasValue)
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
773Debug.Assert(sameDistance.HasValue);
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (1)
639if (subsumes.HasValue)
System.Text.RegularExpressions.Generator (1)
parent\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
773Debug.Assert(sameDistance.HasValue);
System.Threading.RateLimiting (3)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
451if (metadataName == MetadataName.RetryAfter.Name && _retryAfter.HasValue)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
513if (metadataName == MetadataName.RetryAfter.Name && _retryAfter.HasValue)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
451if (metadataName == MetadataName.RetryAfter.Name && _retryAfter.HasValue)
System.Threading.Tasks.Dataflow (1)
Blocks\TransformManyBlock.cs (1)
379if (!isNextNullable.HasValue) return; // data was successfully output
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
952if (isSynchronizedWithCurrentItem.HasValue) 2645Debug.Assert(_localMousePosition.HasValue);
System.Windows.Forms (14)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1213if (_lastClipRect.HasValue) 1790if (_lastClipRect.HasValue)
System\Windows\Forms\Application.ThreadContext.cs (1)
539if (loopExists.HasValue)
System\Windows\Forms\Control.cs (1)
11150&& !DarkModeRequestState.HasValue)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
22138if (resizeResult.HasValue) 23515if (resizeResult.HasValue)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (3)
42if (!_localizable.HasValue) 63if (!_readOnly.HasValue) 87if (!_canReset.HasValue)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
138if (!_parensAroundName.HasValue)
System\Windows\Forms\DataBinding\ICommandBindingTargetProvider.cs (1)
102if (PreviousEnabledStatus.HasValue)
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
36if (!_tmHeight.HasValue)
System\Windows\Forms\SendKeys\SendKeys.cs (2)
268if (!s_sendMethod.HasValue) 938if (!s_hookSupported.HasValue && s_sendMethod.Value == SendMethodTypes.Default)
System.Windows.Forms.Primitives (78)
Generated\361d1da7f942c932\Windows.Win32.Media_Audio_IMessageFilter_Extensions.g.cs (1)
27 uint __result = @this.HandleInComingCall(dwCallType, htaskCaller, dwTickCount, lpInterfaceInfo.HasValue ? &lpInterfaceInfoLocal : null);
Generated\361d1da7f942c932\Windows.Win32.System_Ole_IOleInPlaceActiveObject_Extensions.g.cs (1)
37 winmdroot.Foundation.HRESULT __result = @this.TranslateAccelerator(lpmsg.HasValue ? &lpmsgLocal : null);
Generated\361d1da7f942c932\Windows.Win32.System_Ole_IViewObject_Extensions.g.cs (2)
28 winmdroot.Foundation.HRESULT __result = @this.Draw(dwDrawAspect, lindex, pvAspect, ptd, hdcTargetDev, hdcDraw, lprcBounds.HasValue ? &lprcBoundsLocal : null, lprcWBounds.HasValue ? &lprcWBoundsLocal : null, pfnContinue, dwContinue);
Generated\361d1da7f942c932\Windows.Win32.System_Ole_IViewObject2_Extensions.g.cs (2)
28 winmdroot.Foundation.HRESULT __result = @this.Draw(dwDrawAspect, lindex, pvAspect, ptd, hdcTargetDev, hdcDraw, lprcBounds.HasValue ? &lprcBoundsLocal : null, lprcWBounds.HasValue ? &lprcWBoundsLocal : null, pfnContinue, dwContinue);
Generated\361d1da7f942c932\Windows.Win32.UI_Shell_IWebBrowser_Extensions.g.cs (5)
30 winmdroot.Foundation.HRESULT __result = @this.Navigate(URL, Flags.HasValue ? &FlagsLocal : null, TargetFrameName.HasValue ? &TargetFrameNameLocal : null, PostData.HasValue ? &PostDataLocal : null, Headers.HasValue ? &HeadersLocal : null); 38 winmdroot.Foundation.HRESULT __result = @this.Refresh2(Level.HasValue ? &LevelLocal : null);
Generated\361d1da7f942c932\Windows.Win32.UI_Shell_IWebBrowser2_Extensions.g.cs (13)
30 winmdroot.Foundation.HRESULT __result = @this.Navigate(URL, Flags.HasValue ? &FlagsLocal : null, TargetFrameName.HasValue ? &TargetFrameNameLocal : null, PostData.HasValue ? &PostDataLocal : null, Headers.HasValue ? &HeadersLocal : null); 38 winmdroot.Foundation.HRESULT __result = @this.Refresh2(Level.HasValue ? &LevelLocal : null); 104 winmdroot.Foundation.HRESULT __result = @this.Navigate2(URLLocal, Flags.HasValue ? &FlagsLocal : null, TargetFrameName.HasValue ? &TargetFrameNameLocal : null, PostData.HasValue ? &PostDataLocal : null, Headers.HasValue ? &HeadersLocal : null); 125 winmdroot.Foundation.HRESULT __result = @this.ExecWB(cmdID, cmdexecopt, pvaIn.HasValue ? &pvaInLocal : null, pvaOutLocal); 135 winmdroot.Foundation.HRESULT __result = @this.ExecWB(cmdID, cmdexecopt, pvaIn.HasValue ? &pvaInLocal : null, default(winmdroot.System.Variant.VARIANT* )); 146 winmdroot.Foundation.HRESULT __result = @this.ShowBrowserBar(pvaClsidLocal, pvarShow.HasValue ? &pvarShowLocal : null, pvarSize.HasValue ? &pvarSizeLocal : null);
Generated\361d1da7f942c932\Windows.Win32.UI_Shell_IWebBrowserApp_Extensions.g.cs (5)
30 winmdroot.Foundation.HRESULT __result = @this.Navigate(URL, Flags.HasValue ? &FlagsLocal : null, TargetFrameName.HasValue ? &TargetFrameNameLocal : null, PostData.HasValue ? &PostDataLocal : null, Headers.HasValue ? &HeadersLocal : null); 38 winmdroot.Foundation.HRESULT __result = @this.Refresh2(Level.HasValue ? &LevelLocal : null);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IMessageFilter.g.cs (1)
62 uint __result = this.HandleInComingCall(dwCallType, htaskCaller, dwTickCount, lpInterfaceInfo.HasValue ? &lpInterfaceInfoLocal : null);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleInPlaceActiveObject.g.cs (1)
122 winmdroot.Foundation.HRESULT __result = this.TranslateAccelerator(lpmsg.HasValue ? &lpmsgLocal : null);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IViewObject.g.cs (2)
63 this.Draw(dwDrawAspect, lindex, pvAspect, ptd, hdcTargetDev, hdcDraw, lprcBounds.HasValue ? &lprcBoundsLocal : null, lprcWBounds.HasValue ? &lprcWBoundsLocal : null, pfnContinue, dwContinue);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IViewObject2.g.cs (2)
63 this.Draw(dwDrawAspect, lindex, pvAspect, ptd, hdcTargetDev, hdcDraw, lprcBounds.HasValue ? &lprcBoundsLocal : null, lprcWBounds.HasValue ? &lprcWBoundsLocal : null, pfnContinue, dwContinue);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IWebBrowser.g.cs (5)
244 this.Navigate(URL, Flags.HasValue ? &FlagsLocal : null, TargetFrameName.HasValue ? &TargetFrameNameLocal : null, PostData.HasValue ? &PostDataLocal : null, Headers.HasValue ? &HeadersLocal : null); 302 this.Refresh2(Level.HasValue ? &LevelLocal : null);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IWebBrowser2.g.cs (13)
256 this.Navigate(URL, Flags.HasValue ? &FlagsLocal : null, TargetFrameName.HasValue ? &TargetFrameNameLocal : null, PostData.HasValue ? &PostDataLocal : null, Headers.HasValue ? &HeadersLocal : null); 314 winmdroot.Foundation.HRESULT __result = this.Refresh2(Level.HasValue ? &LevelLocal : null); 1472 winmdroot.Foundation.HRESULT __result = this.Navigate2(URLLocal, Flags.HasValue ? &FlagsLocal : null, TargetFrameName.HasValue ? &TargetFrameNameLocal : null, PostData.HasValue ? &PostDataLocal : null, Headers.HasValue ? &HeadersLocal : null); 1536 winmdroot.Foundation.HRESULT __result = this.ExecWB(cmdID, cmdexecopt, pvaIn.HasValue ? &pvaInLocal : null, pvaOutLocal); 1545 winmdroot.Foundation.HRESULT __result = this.ExecWB(cmdID, cmdexecopt, pvaIn.HasValue ? &pvaInLocal : null, default(winmdroot.System.Variant.VARIANT* )); 1582 this.ShowBrowserBar(pvaClsidLocal, pvarShow.HasValue ? &pvarShowLocal : null, pvarSize.HasValue ? &pvarSizeLocal : null);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IWebBrowserApp.g.cs (5)
244 this.Navigate(URL, Flags.HasValue ? &FlagsLocal : null, TargetFrameName.HasValue ? &TargetFrameNameLocal : null, PostData.HasValue ? &PostDataLocal : null, Headers.HasValue ? &HeadersLocal : null); 302 this.Refresh2(Level.HasValue ? &LevelLocal : null);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvoke.GDI32.dll.g.cs (1)
113 winmdroot.Foundation.BOOL __result = PInvoke.ExtTextOut(hdc, x, y, options, lprect.HasValue ? &lprectLocal : null, lpStringLocal, (uint )lpDx.Length, lpDxLocal);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvoke.SHELL32.dll.g.cs (1)
156 winmdroot.Foundation.HRESULT __result = PInvoke.SHCreateShellItem(pidlParent.HasValue ? &pidlParentLocal : null, psfParent, pidlLocal, ppsi);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvoke.USER32.dll.g.cs (11)
323 winmdroot.Foundation.BOOL __result = PInvoke.ClipCursor(lpRect.HasValue ? &lpRectLocal : null); 864 int __result = PInvoke.DrawTextEx(hdc, wstrlpchText, cchText, lprcLocal, format, lpdtp.HasValue ? &lpdtpLocal : null); 2345 winmdroot.Foundation.BOOL __result = PInvoke.InvalidateRect(hWnd, lpRect.HasValue ? &lpRectLocal : null, bErase); 2857 winmdroot.Foundation.BOOL __result = PInvoke.RedrawWindow(hWnd, lprcUpdate.HasValue ? &lprcUpdateLocal : null, hrgnUpdate, flags); 3014 winmdroot.Foundation.BOOL __result = PInvoke.ScrollWindow(hWnd, XAmount, YAmount, lpRect.HasValue ? &lpRectLocal : null, lpClipRect.HasValue ? &lpClipRectLocal : null); 3067 int __result = PInvoke.ScrollWindowEx(hWnd, dx, dy, prcScroll.HasValue ? &prcScrollLocal : null, prcClip.HasValue ? &prcClipLocal : null, hrgnUpdate, prcUpdateLocal, flags); 3078 int __result = PInvoke.ScrollWindowEx(hWnd, dx, dy, prcScroll.HasValue ? &prcScrollLocal : null, prcClip.HasValue ? &prcClipLocal : null, hrgnUpdate, default(winmdroot.Foundation.RECT* ), flags); 4167 winmdroot.Foundation.BOOL __result = PInvoke.ValidateRect(hWnd, lpRect.HasValue ? &lpRectLocal : null);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvoke.UXTHEME.dll.g.cs (5)
47 winmdroot.Foundation.HRESULT __result = PInvoke.DrawThemeBackground(hTheme, hdc, iPartId, iStateId, pRectLocal, pClipRect.HasValue ? &pClipRectLocal : null); 158 winmdroot.Foundation.HRESULT __result = PInvoke.DrawThemeParentBackground(hwnd, hdc, prc.HasValue ? &prcLocal : null); 794 winmdroot.Foundation.HRESULT __result = PInvoke.GetThemeMargins(hTheme, hdc, iPartId, iStateId, iPropId, prc.HasValue ? &prcLocal : null, pMarginsLocal); 852 winmdroot.Foundation.HRESULT __result = PInvoke.GetThemePartSize(hTheme, hdc, iPartId, iStateId, prc.HasValue ? &prcLocal : null, eSize, pszLocal); 1061 winmdroot.Foundation.HRESULT __result = PInvoke.GetThemeTextExtent(hTheme, hdc, iPartId, iStateId, pszTextLocal, cchCharCount, dwTextFlags, pBoundingRect.HasValue ? &pBoundingRectLocal : null, pExtentRectLocal);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvoke.winspool.drv.g.cs (2)
54 int __result = PInvoke.DocumentProperties(hWnd, hPrinter, pDeviceName, pDevModeOutputLocal, pDevModeInput.HasValue ? &pDevModeInputLocal : null, fMode); 63 int __result = PInvoke.DocumentProperties(hWnd, hPrinter, pDeviceName, default(winmdroot.Graphics.Gdi.DEVMODEW* ), pDevModeInput.HasValue ? &pDevModeInputLocal : null, fMode);
System.Xaml (7)
System\Xaml\XamlMember.cs (4)
466return _reflector.SerializationVisibility.HasValue; 814if (!result.HasValue) 830if (!result.HasValue) 950if (!result.HasValue)
System\Xaml\XamlObjectReader.cs (1)
1131if (isAttributableMarkupExtension.HasValue)
System\Xaml\XamlType.cs (2)
1345if (usable.HasValue) 1525if (!result.HasValue)
Testing.Tests (1)
WaitFailures.cs (1)
156await app.ResourceNotifications.WaitForResourceAsync(nginx.Resource.Name, x => x.Snapshot.HealthReports.All(x => x.Status.HasValue), cts.Token);
TestProject.AppHost (1)
TestProgram.cs (1)
58if (trustDeveloperCertificate.HasValue)
vbc (1)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
153if (serverResult.HasValue)
VBCSCompiler (3)
src\roslyn\src\Compilers\Server\VBCSCompiler\MetadataCache.cs (2)
62if (fileKey.HasValue && _metadataCache.TryGetValue(fileKey.Value, out metadata) && metadata != null) 75Debug.Assert(fileKey.HasValue);
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
153if (serverResult.HasValue)