817 references to GetValueOrDefault
Aspire.Dashboard (6)
Components\Controls\Chart\ChartBase.cs (1)
183currentTrace.Tooltips.Add(FormatTooltip(currentTrace.Name, currentTrace.Values[i].GetValueOrDefault(), xValues[i]));
Components\Dialogs\McpServerDialog.razor.cs (1)
98private bool McpEnabled => !DashboardOptions.Value.Mcp.Disabled.GetValueOrDefault();
Components\Layout\MainLayout.razor.cs (1)
188!Options.CurrentValue.Mcp.Disabled.GetValueOrDefault() &&
DashboardEndpointsBuilder.cs (1)
98if (!dashboardOptions.Mcp.Disabled.GetValueOrDefault())
DashboardWebApplication.cs (1)
408!_dashboardOptionsMonitor.CurrentValue.Mcp.Disabled.GetValueOrDefault() &&
Model\Assistant\AIContextProvider.cs (1)
282if (_dashboardOptions.CurrentValue.AI.Disabled.GetValueOrDefault())
GenerateDocumentationAndConfigFiles (14)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\RoslynAnalyzers\Microsoft.CodeAnalysis.Analyzers\Core\MetaAnalyzers\ReleaseTrackingHelper.cs (1)
427return (x?.CompareTo(y)).GetValueOrDefault() * -1;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
http2cat (6)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (6)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 508: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 523: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
IIS.FunctionalTests (6)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (6)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 508: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 523: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
IIS.LongTests (6)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (6)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 508: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 523: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
IIS.NewHandler.FunctionalTests (6)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (6)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 508: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 523: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
IISExpress.FunctionalTests (6)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (6)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 508: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 523: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
InMemory.FunctionalTests (5)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
162depthLimit.GetValueOrDefault(), 331nextUpdate = RevocationExpiration.GetValueOrDefault();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
172VerifyGoAway(frame, expectedLastStreamId.GetValueOrDefault()); 427await stream.WriteStreamIdAsync(id.GetValueOrDefault()); 987VerifyGoAway(frame, expectedLastStreamId.GetValueOrDefault());
InteropClient (1)
InteropClient.cs (1)
183if (options.UseTls.GetValueOrDefault())
Metrics (15)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
57depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
55depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Metrics.Legacy (15)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
57depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
55depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Microsoft.AspNetCore.Authentication.Abstractions (2)
AuthenticationProperties.cs (2)
187Items[key] = value.GetValueOrDefault().ToString(); 219Items[key] = value.GetValueOrDefault().ToString(UtcDateTimeFormat, CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Components (1)
BindConverter.cs (1)
1581value = converted.GetValueOrDefault();
Microsoft.AspNetCore.DataProtection (4)
AuthenticatedEncryption\ConfigurationModel\XmlExtensions.cs (1)
17return ((bool?)element.Attribute(XmlConstants.RequiresEncryptionAttributeName)).GetValueOrDefault();
Repositories\EphemeralXmlRepository.cs (1)
78.OrderBy(e => e.DeletionOrder.GetValueOrDefault());
Repositories\FileSystemXmlRepository.cs (1)
197.OrderBy(e => e.DeletionOrder.GetValueOrDefault());
Repositories\RegistryXmlRepository.cs (1)
179.OrderBy(e => e.DeletionOrder.GetValueOrDefault());
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonRequestHelpers.cs (1)
341var contentLength = serverCallContext.HttpContext.Request.ContentLength.GetValueOrDefault();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (4)
UnaryServerCallHandlerTests.cs (4)
1686Assert.Equal(4.1, request!.Wrappers.FloatValue.GetValueOrDefault(), 3); 1687Assert.Equal(5.1, request!.Wrappers.DoubleValue.GetValueOrDefault(), 3); 1689Assert.Equal((uint)7, request!.Wrappers.Uint32Value.GetValueOrDefault()); 1690Assert.Equal((ulong)8, request!.Wrappers.Uint64Value.GetValueOrDefault());
Microsoft.AspNetCore.Http (5)
Features\FormFeature.cs (1)
268file = new FormFile(_request.Body, section.BaseStreamOffset.GetValueOrDefault(), section.Body.Length, name, fileName);
HeaderDictionary.cs (1)
139this[HeaderNames.ContentLength] = HeaderUtilities.FormatNonNegativeInt64(value.GetValueOrDefault());
src\Http\Shared\StreamCopyOperationInternal.cs (3)
41Debug.Assert(!bytesRemaining.HasValue || bytesRemaining.GetValueOrDefault() >= 0); 47if (bytesRemaining.HasValue && bytesRemaining.GetValueOrDefault() <= 0) 57readLength = (int)Math.Min(bytesRemaining.GetValueOrDefault(), (long)readLength);
Microsoft.AspNetCore.Http.Abstractions (3)
CookieBuilder.cs (1)
118Expires = Expiration.HasValue ? expiresFrom.Add(Expiration.GetValueOrDefault()) : default(DateTimeOffset?)
Internal\ParsingHelpers.cs (2)
92if (!values.HasValue || StringValues.IsNullOrEmpty(values.GetValueOrDefault())) 98headers[key] = values.GetValueOrDefault();
Microsoft.AspNetCore.Http.Connections.Common (1)
NegotiateProtocol.cs (1)
188version = reader.ReadAsInt32(NegotiateVersionPropertyName).GetValueOrDefault();
Microsoft.AspNetCore.Http.Extensions (5)
HeaderDictionaryTypeExtensions.cs (1)
127headers[name] = HeaderUtilities.FormatDate(value.GetValueOrDefault());
src\Http\Shared\StreamCopyOperationInternal.cs (3)
41Debug.Assert(!bytesRemaining.HasValue || bytesRemaining.GetValueOrDefault() >= 0); 47if (bytesRemaining.HasValue && bytesRemaining.GetValueOrDefault() <= 0) 57readLength = (int)Math.Min(bytesRemaining.GetValueOrDefault(), (long)readLength);
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
189var status = problemDetails.Status.GetValueOrDefault();
Microsoft.AspNetCore.Http.Results (4)
src\Http\Shared\StreamCopyOperationInternal.cs (3)
41Debug.Assert(!bytesRemaining.HasValue || bytesRemaining.GetValueOrDefault() >= 0); 47if (bytesRemaining.HasValue && bytesRemaining.GetValueOrDefault() <= 0) 57readLength = (int)Math.Min(bytesRemaining.GetValueOrDefault(), (long)readLength);
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
189var status = problemDetails.Status.GetValueOrDefault();
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
189var status = problemDetails.Status.GetValueOrDefault();
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
XmlDataContractSerializerInputFormatter.cs (1)
123var contentLength = request.ContentLength.GetValueOrDefault();
XmlSerializerInputFormatter.cs (1)
107var contentLength = request.ContentLength.GetValueOrDefault();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonInputFormatter.cs (1)
123var contentLength = request.ContentLength.GetValueOrDefault();
Microsoft.AspNetCore.Owin (1)
DictionaryStringValuesWrapper.cs (1)
68Inner[HeaderNames.ContentLength] = (StringValues)HeaderUtilities.FormatNonNegativeInt64(value.GetValueOrDefault());
Microsoft.AspNetCore.Rewrite (1)
RedirectToHttpsRule.cs (1)
21if (SSLPort.HasValue && (port = SSLPort.GetValueOrDefault()) > 0)
Microsoft.AspNetCore.Rewrite.Tests (1)
MiddlewareTests.cs (1)
285Assert.Equal($"https://example.com:{sslPort.GetValueOrDefault().ToString(CultureInfo.InvariantCulture)}/", response.Headers.Location.OriginalString);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (6)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 508: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 523: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.cs (1)
399return RequestHeaders.ContentLength.GetValueOrDefault() > 0;
Microsoft.AspNetCore.Server.Kestrel.Core (31)
Internal\Http\Http1ContentLengthMessageBody.cs (1)
250KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.GetValueOrDefault().ToString(CultureInfo.InvariantCulture));
Internal\Http\Http1MessageBody.cs (1)
146&& headers.ContentLength.GetValueOrDefault() == 0
Internal\Http\HttpHeaders.Generated.cs (3)
8649_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault())); 14819output.WriteNumeric((ulong)ContentLength.GetValueOrDefault()); 15482_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault()));
Internal\Http2\Http2Connection.cs (6)
1608UpdateHeaderParsingState(value, GetPseudoHeaderField(staticTableIndex.GetValueOrDefault())); 1610_currentHeadersStream.OnHeader(staticTableIndex.GetValueOrDefault(), indexOnly: true, name, value); 1613UpdateHeaderParsingState(value, GetPseudoHeaderField(staticTableIndex.GetValueOrDefault())); 1616_currentHeadersStream.OnHeader(staticTableIndex.GetValueOrDefault(), indexOnly: false, name, value); 1622UpdateHeaderParsingState(value, GetPseudoHeaderField(staticTableIndex.GetValueOrDefault())); 1624_currentHeadersStream.OnHeader(staticTableIndex.GetValueOrDefault(), indexOnly: false, name, value);
Internal\Http2\Http2MessageBody.cs (1)
40KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.GetValueOrDefault().ToString(CultureInfo.InvariantCulture));
Internal\Http3\Http3MessageBody.cs (1)
31KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTooLarge, maxRequestBodySize.GetValueOrDefault().ToString(CultureInfo.InvariantCulture));
Internal\Http3\Http3Stream.cs (6)
325UpdateHeaderParsingState(value, GetPseudoHeaderField(staticTableIndex.GetValueOrDefault())); 327OnHeader(staticTableIndex.GetValueOrDefault(), indexOnly: true, name, value); 330UpdateHeaderParsingState(value, GetPseudoHeaderField(staticTableIndex.GetValueOrDefault())); 333OnHeader(staticTableIndex.GetValueOrDefault(), indexOnly: false, name, value); 339UpdateHeaderParsingState(value, GetPseudoHeaderField(staticTableIndex.GetValueOrDefault())); 341OnHeader(staticTableIndex.GetValueOrDefault(), indexOnly: false, name, value);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (6)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 508: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 523: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (6)
249ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 595: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 605: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
CertificatePathWatcherTests.cs (1)
566DateTimeOffset IFileInfo.LastModified => _lastModifiedTime.GetValueOrDefault();
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
162depthLimit.GetValueOrDefault(), 331nextUpdate = RevocationExpiration.GetValueOrDefault();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
172VerifyGoAway(frame, expectedLastStreamId.GetValueOrDefault()); 427await stream.WriteStreamIdAsync(id.GetValueOrDefault()); 987VerifyGoAway(frame, expectedLastStreamId.GetValueOrDefault());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
Internal\QuicConnectionContext.cs (1)
135QuicLog.ConnectionAborted(_log, this, ex.ApplicationErrorCode.GetValueOrDefault(), ex);
Internal\QuicStreamContext.cs (2)
277QuicLog.StreamAbortedRead(_log, this, ex.ApplicationErrorCode.GetValueOrDefault()); 438QuicLog.StreamAbortedWrite(_log, this, ex.ApplicationErrorCode.GetValueOrDefault());
Microsoft.AspNetCore.Shared.Tests (12)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (6)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 508: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 523: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (6)
249ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 595: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 605: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
Microsoft.AspNetCore.WebUtilities (3)
MultipartReaderStream.cs (1)
149LengthLimit.GetValueOrDefault() is var lengthLimit &&
StreamHelperExtensions.cs (2)
67if (limit.HasValue && limit.GetValueOrDefault() - total < read) 69throw new InvalidDataException($"The stream exceeded the data limit {limit.GetValueOrDefault()}.");
Microsoft.Build (15)
BackEnd\Client\MSBuildClient.cs (1)
508startedAt: KnownTelemetry.PartialBuildTelemetry.StartAt.GetValueOrDefault(),
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (1)
284(string numStart, string numEnd) = rangeOpt.GetValueOrDefault();
ElementLocation\XmlDocumentWithLocation.cs (1)
327public override bool IsReadOnly => _loadAsReadOnly.GetValueOrDefault();
ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
Microsoft.Cci.Extensions (2)
Writers\CSharp\CSDeclarationWriter.Properties.cs (2)
88bool getterHasIsReadOnlyAttribute = (getter?.Attributes.HasIsReadOnlyAttribute()).GetValueOrDefault(); 89bool setterHasIsReadOnlyAttribute = (setter?.Attributes.HasIsReadOnlyAttribute()).GetValueOrDefault();
Microsoft.CodeAnalysis (30)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
280(string numStart, string numEnd) = rangeOpt.GetValueOrDefault();
CommandLine\NoThrowStreamDisposer.cs (1)
37return _failed.GetValueOrDefault();
Diagnostic\Diagnostic.cs (1)
524return !filterSpan.HasValue || filterSpan.GetValueOrDefault().IntersectsWith(location.SourceSpan);
DiagnosticAnalyzer\AnalysisScope.cs (11)
161if (filterSpan.HasValue && filterFile.GetValueOrDefault().SourceTree != null) 169if (filterSpan.GetValueOrDefault().Start == 0 && filterSpan.GetValueOrDefault().Length == filterFile.GetValueOrDefault().SourceTree!.Length) 227return !FilterFileOpt.HasValue || FilterFileOpt.GetValueOrDefault().SourceTree == tree; 232return !FilterFileOpt.HasValue || FilterFileOpt.GetValueOrDefault().AdditionalFile == file; 245var filterTree = FilterFileOpt.GetValueOrDefault().SourceTree; 273if (FilterFileOpt.GetValueOrDefault().SourceTree == null) 283return !FilterSpanOpt.HasValue || FilterSpanOpt.GetValueOrDefault().IntersectsWith(filterSpan); 288return !FilterSpanOpt.HasValue || FilterSpanOpt.GetValueOrDefault().Contains(filterSpan); 298var filterFile = FilterFileOpt.GetValueOrDefault();
MetadataReference\AssemblyIdentityComparer.cs (1)
99return eq.GetValueOrDefault() ? ComparisonResult.Equivalent : ComparisonResult.NotEquivalent;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
Syntax\LineDirectiveMap.cs (2)
84unmappedStartPos.Character < entry.UnmappedCharacterOffset.GetValueOrDefault()) 98entry.MappedSpan.Start.Character + unmapped.Character - entry.UnmappedCharacterOffset.GetValueOrDefault() :
Syntax\LineMapping.cs (1)
69builder.Append(CharacterOffset.GetValueOrDefault().ToString(System.Globalization.CultureInfo.InvariantCulture));
Microsoft.CodeAnalysis.Analyzers (16)
MetaAnalyzers\ReleaseTrackingHelper.cs (1)
427return (x?.CompareTo(y)).GetValueOrDefault() * -1;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
57depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
55depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
57depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
55depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Microsoft.CodeAnalysis.BannedApiAnalyzers (15)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
57depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
55depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Microsoft.CodeAnalysis.CodeStyle (14)
src\Analyzers\Core\Analyzers\Formatting\AbstractFormattingAnalyzer.cs (1)
51var span = context.FilterSpan.HasValue ? context.FilterSpan.GetValueOrDefault() : root.FullSpan;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Microsoft.CodeAnalysis.Collections.Package (12)
Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
Microsoft.CodeAnalysis.CSharp (68)
Binder\Binder.CapturedParametersFinder.cs (1)
159if (isInsideNameof.GetValueOrDefault())
Binder\Binder_Conversions.cs (2)
2432var conversion = conversionIfTargetTyped.GetValueOrDefault(); 2960member.GetValueOrDefault(),
Binder\Binder_Expressions.cs (3)
2750memberOpt.GetValueOrDefault(), 9875checkInlineArrayBounds(location, constIndex.GetValueOrDefault(), length, excludeEnd, diagnostics); 10606arguments.Names[0].GetValueOrDefault().Location);
Binder\Binder_Operators.cs (10)
190best = staticExtensionBest.GetValueOrDefault(); 1227best = extensionBest.GetValueOrDefault(); 1529UnaryOperatorAnalysisResult trueFalseOperator = (kind == BinaryOperatorKind.LogicalAnd ? falseOperator : trueOperator).GetValueOrDefault(); 1552trueOperator.GetValueOrDefault().Signature.Method, 1553falseOperator.GetValueOrDefault().Signature.Method, 1695Debug.Assert(!trueOperator.GetValueOrDefault().Signature.Kind.IsLifted()); 1696Debug.Assert(!falseOperator.GetValueOrDefault().Signature.Kind.IsLifted()); 2074possiblyBest = extensionBest.GetValueOrDefault(); 2283best = extensionBest.GetValueOrDefault(); 3348best = staticExtensionBest.GetValueOrDefault();
Binder\DecisionDagBuilder.cs (4)
4380return easyOut.GetValueOrDefault(); 4401if (easyOut.GetValueOrDefault()) 4457return easyOut.GetValueOrDefault(); 4473value = Hash.Combine(easyOut.GetValueOrDefault(), value);
Binder\DecisionDagBuilder_CheckOrReachability.cs (1)
693disjunction = _disjunction.GetValueOrDefault();
Binder\Semantics\Conversions\Conversions.cs (1)
88member.GetValueOrDefault(),
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (4)
1227if (op1.Priority.HasValue && op1.Priority.GetValueOrDefault() != op2.Priority.GetValueOrDefault()) 1229return (op1.Priority.GetValueOrDefault() < op2.Priority.GetValueOrDefault()) ? BetterResult.Left : BetterResult.Right;
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (1)
322var name = arguments.Names[argumentPosition].GetValueOrDefault().Name;
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (5)
496Location badName = arguments.Names[badArg].GetValueOrDefault().Location; 834(string badName, Location location) = arguments.Names[badArg].GetValueOrDefault(); 854(string badName, Location location) = arguments.Names[badArg].GetValueOrDefault(); 868(string name, Location location) = arguments.Names[result.Result.FirstBadArgument].GetValueOrDefault(); 894(string badName, Location location) = arguments.Names[badArg].GetValueOrDefault();
CodeGen\EmitExpression.cs (7)
617return walker._result.GetValueOrDefault(); 1739else if (BoxNonVerifierReferenceReceiver(parentCallReceiverType, addressKind.GetValueOrDefault())) 1749Debug.Assert(addressKind.GetValueOrDefault() != AddressKind.Constrained); 1759if (UseCallResultAsAddress(call, addressKind.GetValueOrDefault())) 1811Debug.Assert(!HasHome(nested, addressKind.GetValueOrDefault())); 1939Debug.Assert((callKind != CallKind.ConstrainedCallVirt) || (addressKind.GetValueOrDefault() == AddressKind.Constrained) || receiverType.IsVerifierValue()); 1964tempOpt = EmitReceiverRef(receiver, addressKind.GetValueOrDefault());
Compiler\ClsComplianceChecker.cs (2)
134else if (assemblyComplianceValue != moduleDeclaredCompliance.GetValueOrDefault()) 1152compliance = declaredCompliance.GetValueOrDefault() ? Compliance.DeclaredTrue : Compliance.DeclaredFalse;
Emitter\Model\MostCommonNullableValueBuilder.cs (1)
70AddValue(value.GetValueOrDefault());
Emitter\Model\PEModuleBuilder.cs (2)
822var context = contextOpt.GetValueOrDefault(); 1737attribute = SynthesizeNullableAttributeIfNecessary(nullableContextValue, commonValue.GetValueOrDefault());
FlowAnalysis\AbstractFlowPass.cs (1)
2765var data = node.InterpolatedStringHandlerData.GetValueOrDefault();
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (1)
57Hash.Combine(thisIndex.GetValueOrDefault(), currentKey) :
FlowAnalysis\NullableWalker.cs (1)
9128return AnonymousTypeManager.GetAnonymousTypeProperty(containingType, memberIndex.GetValueOrDefault());
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
1671MakeBooleanConstant(syntax, value.GetValueOrDefault()));
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (2)
21return VisitExpression(interpolatedString.InterpolationData.GetValueOrDefault().Construction); 215return VisitExpression(node.InterpolationData.GetValueOrDefault().Construction);
Operations\CSharpOperationFactory.cs (1)
1611return boundBinaryOperator.RewriteInterpolatedStringAddition((this, boundBinaryOperator.InterpolatedStringHandlerData.GetValueOrDefault()), createInterpolatedString, createBinaryOperator);
Symbols\MemberSignatureComparer.cs (2)
680isNotNullable1.GetValueOrDefault() != isNotNullable2.GetValueOrDefault())
Symbols\Metadata\PE\NullableTypeDecoder.cs (1)
45defaultTransformFlag = value.GetValueOrDefault();
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
269typeWithAnnotations = NullableTypeDecoder.TransformType(typeWithAnnotations, value.GetValueOrDefault(), default);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
266HasBaseTypeDeclaringInterfaceResult matchResult = hasBaseClassDeclaringInterface.GetValueOrDefault();
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
654if (applyIsGlobalFilter.HasValue && usingDirective.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword) != applyIsGlobalFilter.GetValueOrDefault())
Symbols\Symbol.cs (1)
1717value = localValue.GetValueOrDefault();
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
269var span = definedWithinSpan.GetValueOrDefault();
Symbols\TypeSymbol.cs (4)
1029availableVersion.GetValueOrDefault().ToDisplayString(), new CSharpRequiredLanguageVersion(requiredVersion)); 1655availableVersion.GetValueOrDefault().ToDisplayString(), 1756availableVersion.GetValueOrDefault().ToDisplayString(), 2212(((MethodSymbol)member).MethodKind is MethodKind.UserDefinedOperator or MethodKind.Conversion) != isOperator.GetValueOrDefault())
Symbols\TypeWithAnnotations.cs (2)
783return x.HasValue == y.HasValue && (!x.HasValue || x.GetValueOrDefault().IsSameAs(y.GetValueOrDefault()));
Utilities\TypeUnionValueSet.cs (3)
126return _lazyMightIncludeNonNull.GetValueOrDefault(); 150_lazyIncludesNull = result.GetValueOrDefault(); 154return _lazyIncludesNull.GetValueOrDefault();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
51switch (parentKind.GetValueOrDefault())
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
QuickInfo\SemanticQuickInfoSourceTests.cs (1)
49var position = testDocument.CursorPosition.GetValueOrDefault();
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpPDBTestBase.cs (1)
31bool hasBreakpoint = CheckIfSpanWithinSequencePoints(expectedSpan.GetValueOrDefault(), source, pdb);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Attributes\AttributeTests_Nullable.cs (1)
4905expectedBits = ImmutableArray.Create(addOne.GetValueOrDefault()).Concat(expectedBits);
Semantics\OutVarTests.cs (1)
32746(declarator.ArgumentList?.Contains(decl)).GetValueOrDefault();
Semantics\PatternMatchingTestBase.cs (1)
292(declarator.ArgumentList?.Contains(designation)).GetValueOrDefault();
Microsoft.CodeAnalysis.CSharp.Features (2)
BraceCompletion\CurlyBraceCompletionService.cs (1)
208switch (parentKind.GetValueOrDefault())
EditAndContinue\BreakpointSpans.cs (1)
106span = candidate.GetValueOrDefault();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NullableContextTests.cs (2)
1736if (projectContext != null) options = options.WithNullableContextOptions(projectContext.GetValueOrDefault()); 2224if (projectContext != null) options = options.WithNullableContextOptions(projectContext.GetValueOrDefault());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
51switch (parentKind.GetValueOrDefault())
Microsoft.CodeAnalysis.EditorFeatures (2)
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (1)
129result.Glyph.GetValueOrDefault(),
Shared\Utilities\CommonFormattingHelpers.cs (1)
30var lastNonNoisyCharPosition = previousLine.GetLastNonWhitespacePosition().GetValueOrDefault();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\EditorTestWorkspace.cs (1)
520&& ((bool?)onDiskAttribute).GetValueOrDefault();
Microsoft.CodeAnalysis.Extensions.Package (12)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
Microsoft.CodeAnalysis.Features (5)
CodeLens\CodeLensReferencesService.cs (1)
241var mappedSpans = results.GetValueOrDefault();
Completion\CompletionItemRules.cs (2)
137matchPriority.GetValueOrDefault() == Default.MatchPriority && 146matchPriority.GetValueOrDefault(), selectionBehavior);
Navigation\NavigableItemFactory.SymbolLocationNavigableItem.cs (1)
36public ImmutableArray<TaggedText> DisplayTaggedParts { get; } = displayTaggedParts.GetValueOrDefault();
src\Analyzers\Core\Analyzers\Formatting\AbstractFormattingAnalyzer.cs (1)
51var span = context.FilterSpan.HasValue ? context.FilterSpan.GetValueOrDefault() : root.FullSpan;
Microsoft.CodeAnalysis.InteractiveHost (12)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (15)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
57depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
55depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Microsoft.CodeAnalysis.PublicApiAnalyzers (16)
DeclarePublicApiAnalyzer.Impl.cs (1)
655if (((symbol as INamespaceSymbol)?.IsGlobalNamespace).GetValueOrDefault())
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
57depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
55depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Microsoft.CodeAnalysis.ResxSourceGenerator (15)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
57depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
55depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\OperationTreeVerifier.cs (1)
625if (isChecked.GetValueOrDefault())
Microsoft.CodeAnalysis.Threading.Package (12)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
Microsoft.CodeAnalysis.VisualBasic (3)
BoundTree\BoundCall.vb (2)
97If isLifted.GetValueOrDefault() AndAlso Not Method.ReturnType.IsNullableType() Then 128ElseIf isLifted.GetValueOrDefault Then
Compilation\ClsComplianceChecker.vb (1)
688compliance = If(declaredCompliance.GetValueOrDefault(), Compliance.DeclaredTrue, Compliance.DeclaredFalse)
Microsoft.CodeAnalysis.Workspaces (15)
Classification\ClassifierHelper.cs (1)
184var newSpan = new ClassifiedSpan(span.ClassificationType, intersection.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Utilities\NullableStructExtensions.cs (1)
11valueOrDefault = value.GetValueOrDefault();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (12)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (2)
64if (!ats.ConstraintError.GetValueOrDefault()) 109if (atArg.ConstraintError.GetValueOrDefault())
Microsoft.Data.Analysis (4)
PrimitiveColumnContainer.cs (2)
190mutableBuffer[i] = value.GetValueOrDefault(); 230mutableResultBuffer[i] = value.GetValueOrDefault();
PrimitiveDataFrameColumn.cs (2)
883(ref T value) => value = this[cursor.Position].GetValueOrDefault(); 892(ref ushort value) => value = column[cursor.Position].GetValueOrDefault();
Microsoft.Extensions.AI (1)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
206inputTokens = inputTokens.GetValueOrDefault() + (int)i;
Microsoft.Extensions.AI.Abstractions (2)
Contents\DataContent.cs (2)
282ReadOnlyMemory<byte> data = _data.GetValueOrDefault(); 349return _data.GetValueOrDefault();
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
1248rtu.InputTokenDetails.CachedTokenCount = cachedTokenCount.GetValueOrDefault(); 1253rtu.OutputTokenDetails.ReasoningTokenCount = reasoningTokenCount.GetValueOrDefault();
Microsoft.Extensions.Caching.Abstractions (1)
DistributedCacheEntryOptions.cs (1)
83field = value.GetValueOrDefault();
Microsoft.Extensions.Caching.Hybrid.Tests (8)
ServiceConstructionTests.cs (4)
596Expiration = defaultExpiration is null ? null : TimeSpan.FromMinutes(defaultExpiration.GetValueOrDefault()), 597LocalCacheExpiration = defaultLocalCacheExpiration is null ? null : TimeSpan.FromMinutes(defaultLocalCacheExpiration.GetValueOrDefault()), 611Expiration = perItemExpiration is null ? null : TimeSpan.FromMinutes(perItemExpiration.GetValueOrDefault()), 612LocalCacheExpiration = perItemLocalCacheExpiration is null ? null : TimeSpan.FromMinutes(perItemLocalCacheExpiration.GetValueOrDefault()),
SizeTests.cs (4)
38options.MaximumKeyLength = maximumKeyLength.GetValueOrDefault(); 43options.MaximumPayloadBytes = maximumPayloadBytes.GetValueOrDefault(); 107options.MaximumKeyLength = maximumKeyLength.GetValueOrDefault(); 112options.MaximumPayloadBytes = maximumPayloadBytes.GetValueOrDefault();
Microsoft.Extensions.Caching.Memory (4)
CacheEntry.cs (3)
85DateTimeOffset expiration = value.GetValueOrDefault(); 114_absoluteExpirationRelativeToNow = value.GetValueOrDefault(); 135_slidingExpiration = value.GetValueOrDefault();
MemoryCache.cs (1)
182Interlocked.Add(ref coherentState._cacheSize, -entry.Size + (priorEntry?.Size).GetValueOrDefault());
Microsoft.Extensions.Caching.StackExchangeRedis (6)
RedisCache.cs (6)
188var setTtl = batch.KeyExpireAsync(prefixedKey, TimeSpan.FromSeconds(ttl.GetValueOrDefault())); 237cache.KeyExpireAsync(prefixedKey, TimeSpan.FromSeconds(ttl.GetValueOrDefault())) 416Refresh(cache, key, absExpr, sldExpr.GetValueOrDefault()); 455await RefreshAsync(cache, key, absExpr, sldExpr.GetValueOrDefault(), token).ConfigureAwait(false); 734Refresh(cache, key, absExpr, sldExpr.GetValueOrDefault()); 781await RefreshAsync(cache, key, absExpr, sldExpr.GetValueOrDefault(), token).ConfigureAwait(false);
Microsoft.Extensions.DataIngestion (1)
Chunkers\HeaderChunker.cs (1)
51int headerLevel = header.Level.GetValueOrDefault();
Microsoft.Extensions.DataIngestion.Tests (1)
IngestionPipelineTests.cs (1)
182content: new(image.Content.GetValueOrDefault(), image.MediaType!),
Microsoft.ML.CodeGenerator (4)
Utils.cs (4)
105if (Single.IsNaN(f.GetValueOrDefault())) 110if (Single.IsPositiveInfinity(f.GetValueOrDefault())) 115if (Single.IsNegativeInfinity(f.GetValueOrDefault())) 126return f.GetValueOrDefault() ? "true" : "false";
Microsoft.ML.Core (3)
Data\ProgressReporter.cs (1)
89if (Double.IsNaN(lim.GetValueOrDefault()))
Utilities\Random.cs (2)
54return Create(seed.GetValueOrDefault()); 67return Create(seed.GetValueOrDefault());
Microsoft.ML.Data (4)
Data\SchemaDefinition.cs (1)
445itemType = new KeyDataViewType(dataType, keyAttr.KeyCount.Count.GetValueOrDefault());
DataLoadSave\Database\DatabaseLoader.cs (1)
694keyType = new KeyDataViewType(rawType, keyCount.Count.GetValueOrDefault());
Transforms\SkipTakeFilter.cs (1)
201long afterSkip = count.GetValueOrDefault() - _skip;
Utilities\TypeParsingUtils.cs (1)
66keyType = new KeyDataViewType(rawType, keyCount.Count.GetValueOrDefault());
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
249return rows.GetValueOrDefault();
Microsoft.ML.OnnxTransformer (6)
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.Transforms (4)
Dracula\CountTableTransformer.cs (4)
137var labelColumnType = labelCol.GetValueOrDefault().Type; 138var labelClassNames = InitLabelClassNames(_host, labelCol.GetValueOrDefault(), labelCardinality); 148inputColumns[i] = col.GetValueOrDefault(); 168TrainTables(input, cols, multiBuilder, labelCol.GetValueOrDefault());
Microsoft.Net.Http.Headers (36)
CacheControlHeaderValue.cs (8)
355sb.Append(((int)_maxAge.GetValueOrDefault().TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)); 362sb.Append(((int)_sharedMaxAge.GetValueOrDefault().TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)); 371sb.Append(((int)_maxStaleLimit.GetValueOrDefault().TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)); 379sb.Append(((int)_minFresh.GetValueOrDefault().TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)); 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);
ContentDispositionHeaderValue.cs (3)
186sizeParameter.Value = value.GetValueOrDefault().ToString(CultureInfo.InvariantCulture); 190var sizeString = value.GetValueOrDefault().ToString(CultureInfo.InvariantCulture); 387var dateString = HeaderUtilities.FormatDate(date.GetValueOrDefault(), quoted: true);
ContentRangeHeaderValue.cs (3)
182sb.Append(From.GetValueOrDefault().ToString(NumberFormatInfo.InvariantInfo)); 184sb.Append(To.GetValueOrDefault().ToString(NumberFormatInfo.InvariantInfo)); 194sb.Append(Length.GetValueOrDefault().ToString(NumberFormatInfo.InvariantInfo));
RangeConditionHeaderValue.cs (4)
76return HeaderUtilities.FormatDate(_lastModified.GetValueOrDefault()); 93return (other._lastModified != null) && (_lastModified.GetValueOrDefault() == other._lastModified.GetValueOrDefault()); 104return _lastModified.GetValueOrDefault().GetHashCode();
RangeItemHeaderValue.cs (12)
33if (from.HasValue && (from.GetValueOrDefault() < 0)) 37if (to.HasValue && (to.GetValueOrDefault() < 0)) 41if (from.HasValue && to.HasValue && (from.GetValueOrDefault() > to.GetValueOrDefault())) 71return "-" + _to.GetValueOrDefault().ToString(NumberFormatInfo.InvariantInfo); 75return _from.GetValueOrDefault().ToString(NumberFormatInfo.InvariantInfo) + "-"; 77return _from.GetValueOrDefault().ToString(NumberFormatInfo.InvariantInfo) + "-" + 78_to.GetValueOrDefault().ToString(NumberFormatInfo.InvariantInfo); 92return _to.GetValueOrDefault().GetHashCode(); 96return _from.GetValueOrDefault().GetHashCode(); 98return _from.GetValueOrDefault().GetHashCode() ^ _to.GetValueOrDefault().GetHashCode();
SetCookieHeaderValue.cs (3)
203maxAge = HeaderUtilities.FormatInt64((long)MaxAge.GetValueOrDefault().TotalSeconds); 345AppendSegment(builder, ExpiresToken, HeaderUtilities.FormatDate(Expires.GetValueOrDefault())); 350AppendSegment(builder, MaxAgeToken, HeaderUtilities.FormatInt64((long)MaxAge.GetValueOrDefault().TotalSeconds));
StringWithQualityHeaderValue.cs (3)
73return _value + "; q=" + _quality.GetValueOrDefault().ToString("0.0##", NumberFormatInfo.InvariantInfo); 99return other._quality.HasValue && (_quality.GetValueOrDefault() == other._quality.Value); 114result = result ^ _quality.GetValueOrDefault().GetHashCode();
Microsoft.VisualStudio.LanguageServices (6)
ExtractClass\VisualStudioExtractClassOptionsService.cs (1)
98if (result.GetValueOrDefault())
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (2)
49if (result.GetValueOrDefault()) 52return GenerateOptions(document.Project.Language, viewModel, result.GetValueOrDefault());
PullMemberUp\MainDialog\PullMemberUpDialog.xaml.cs (1)
64return warningDialog.ShowModal().GetValueOrDefault();
PullMemberUp\VisualStudioPullMemberUpService.cs (1)
70if (result.GetValueOrDefault())
Workspace\VisualStudioDocumentNavigationService.cs (1)
324var mappedSpans = results.GetValueOrDefault();
Roslyn.Diagnostics.Analyzers (15)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
57depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
55depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
51switch (parentKind.GetValueOrDefault())
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (4)
99return left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 110return !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\DisplayAttribute.cs (3)
215return _autoGenerateField.GetValueOrDefault(); 244return _autoGenerateFilter.GetValueOrDefault(); 272return _order.GetValueOrDefault();
System.Data.Common (7)
System\Data\SQLTypes\SQLGuid.cs (7)
93return _value.GetValueOrDefault().ToByteArray(); 101return _value.GetValueOrDefault().ToString(); 123bool xWrote = x._value.GetValueOrDefault().TryWriteBytes(xBytes); 127bool yWrote = y._value.GetValueOrDefault().TryWriteBytes(yBytes); 163new SqlBoolean(x._value.GetValueOrDefault() == y._value.GetValueOrDefault()); 318writer.WriteString(XmlConvert.ToString(_value.GetValueOrDefault()));
System.Linq (33)
System\Linq\Average.cs (4)
148TAccumulator sum = TAccumulator.CreateChecked(value.GetValueOrDefault()); 156checked { sum += TAccumulator.CreateChecked(value.GetValueOrDefault()); } 244TAccumulator sum = TAccumulator.CreateChecked(value.GetValueOrDefault()); 252checked { sum += TAccumulator.CreateChecked(value.GetValueOrDefault()); }
System\Linq\Max.cs (16)
48T valueVal = value.GetValueOrDefault(); 60T x = cur.GetValueOrDefault(); 73T x = cur.GetValueOrDefault(); 184T valueVal = value.GetValueOrDefault(); 195valueVal = (value = cur).GetValueOrDefault(); 202T x = cur.GetValueOrDefault(); 284decimal valueVal = value.GetValueOrDefault(); 288decimal x = cur.GetValueOrDefault(); 581TResult valueVal = value.GetValueOrDefault(); 593TResult x = cur.GetValueOrDefault(); 606TResult x = cur.GetValueOrDefault(); 696TResult valueVal = value.GetValueOrDefault(); 707valueVal = (value = cur).GetValueOrDefault(); 714TResult x = cur.GetValueOrDefault(); 785decimal valueVal = value.GetValueOrDefault(); 789decimal x = cur.GetValueOrDefault();
System\Linq\Min.cs (12)
52T valueVal = value.GetValueOrDefault(); 56T x = cur.GetValueOrDefault(); 169T valueVal = value.GetValueOrDefault(); 180T x = cur.GetValueOrDefault(); 263decimal valueVal = value.GetValueOrDefault(); 267decimal x = cur.GetValueOrDefault(); 564TResult valueVal = value.GetValueOrDefault(); 568TResult x = cur.GetValueOrDefault(); 665TResult valueVal = value.GetValueOrDefault(); 676TResult x = cur.GetValueOrDefault(); 749decimal valueVal = value.GetValueOrDefault(); 753decimal x = cur.GetValueOrDefault();
System\Linq\Sum.cs (1)
217checked { sum += TAccumulator.CreateChecked(value.GetValueOrDefault()); }
System.Linq.AsyncEnumerable (7)
System\Linq\MinAsync.cs (2)
228if (value == null || x < value || float.IsNaN(x.GetValueOrDefault())) 253if (value == null || x < value || double.IsNaN(x.GetValueOrDefault()))
System\Linq\SumAsync.cs (5)
162checked { sum += item.GetValueOrDefault(); } 191checked { sum += item.GetValueOrDefault(); } 219sum += item.GetValueOrDefault(); 247sum += item.GetValueOrDefault(); 275sum += item.GetValueOrDefault();
System.Linq.Expressions (8)
System\Linq\Expressions\Interpreter\LightCompiler.cs (8)
2273_instructions.EmitStoreLocal(objTmp.GetValueOrDefault().Index); 2311_instructions.EmitStoreLocal(memberTemp.GetValueOrDefault().Index); 3197object? obj = _object == null ? null : frame.Data[_object.GetValueOrDefault().Index]; 3205locals.UndefineLocal(_object.GetValueOrDefault(), instructions.Count); 3224object? obj = _object == null ? null : frame.Data[_object.GetValueOrDefault().Index]; 3241locals.UndefineLocal(_object.GetValueOrDefault(), instructions.Count); 3269object? instance = _obj == null ? null : frame.Data[_obj.GetValueOrDefault().Index]; 3286locals.UndefineLocal(_obj.GetValueOrDefault(), instructions.Count);
System.Linq.Parallel (25)
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (1)
123sum += current.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalSumAggregationOperator.cs (2)
49sum += enumerator.Current.GetValueOrDefault(); 108tempSum += element.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (1)
123sum += current.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleMinMaxAggregationOperator.cs (4)
70if (best == null || current < best || double.IsNaN(current.GetValueOrDefault())) 82if (best == null || current > best || double.IsNaN(best.GetValueOrDefault())) 150if (currentElement == null || elem < currentElement || double.IsNaN(elem.GetValueOrDefault())) 165if (currentElement == null || elem > currentElement || double.IsNaN(currentElement.GetValueOrDefault()))
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleSumAggregationOperator.cs (2)
49sum += enumerator.Current.GetValueOrDefault(); 108tempSum += element.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (1)
124sum += current.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatMinMaxAggregationOperator.cs (4)
70if (best == null || current < best || float.IsNaN(current.GetValueOrDefault())) 82if (best == null || current > best || float.IsNaN(best.GetValueOrDefault())) 150if (currentElement == null || elem < currentElement || float.IsNaN(elem.GetValueOrDefault())) 165if (currentElement == null || elem > currentElement || float.IsNaN(currentElement.GetValueOrDefault()))
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatSumAggregationOperator.cs (2)
49sum += enumerator.Current.GetValueOrDefault(); 108tempSum += element.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (1)
124sum += current.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableIntSumAggregationOperator.cs (2)
51sum += enumerator.Current.GetValueOrDefault(); 112tempSum += element.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (1)
124sum += current.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableLongSumAggregationOperator.cs (2)
51sum += enumerator.Current.GetValueOrDefault(); 114tempSum += element.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\QueryOperator.cs (1)
153PartitionedStreamMerger<TOutput> merger = new PartitionedStreamMerger<TOutput>(forEffect, mergeOptions.GetValueOrDefault(),
System\Linq\Parallel\QueryOperators\ScanQueryOperator.cs (1)
63return new ListQueryResults<TElement>(dataAsList, settings.DegreeOfParallelism.GetValueOrDefault(), preferStriping);
System.Linq.Queryable (1)
System\Linq\TypeHelper.cs (1)
25if (definitionIsInterface.GetValueOrDefault())
System.Net.Http (37)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (6)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 508: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 523: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (6)
249ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 595: data.Slice(_headerValueRange.GetValueOrDefault().start, _headerValueRange.GetValueOrDefault().length); 605: data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
System\Net\Http\Headers\AltSvcHeaderParser.cs (1)
140maxAge = Math.Min(maxAge.GetValueOrDefault(), maxAgeTmp);
System\Net\Http\Headers\CacheControlHeaderValue.cs (1)
61fieldRef = value.GetValueOrDefault();
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (2)
109ArgumentOutOfRangeException.ThrowIfNegative(value.GetValueOrDefault()); 314string dateString = $"\"{date.GetValueOrDefault():r}\"";
System\Net\Http\Headers\HeaderUtilities.cs (1)
42double d = value.GetValueOrDefault();
System\Net\Http\Headers\KnownHeader.Http2And3.cs (2)
16HPackEncoder.EncodeLiteralHeaderFieldWithoutIndexingToAllocatedArray(http2StaticTableIndex.GetValueOrDefault()) : 20QPack.QPackEncoder.EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(http3StaticTableIndex.GetValueOrDefault()) :
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 (4)
29ArgumentOutOfRangeException.ThrowIfNegative(from.GetValueOrDefault(), nameof(from)); 33ArgumentOutOfRangeException.ThrowIfNegative(to.GetValueOrDefault(), nameof(to)); 37ArgumentOutOfRangeException.ThrowIfGreaterThan(from.GetValueOrDefault(), to.GetValueOrDefault(), nameof(from));
System\Net\Http\Headers\WarningHeaderValue.cs (1)
37_date = date.GetValueOrDefault();
System\Net\Http\HttpClient.cs (2)
204c.Headers.ContentLength.GetValueOrDefault(), 280c.Headers.ContentLength.GetValueOrDefault(),
System\Net\Http\HttpContent.cs (1)
621long contentLength = Headers.ContentLength.GetValueOrDefault();
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
98if (response.Headers.ConnectionClose.GetValueOrDefault())
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
695authorityMaxAge -= responseAge.GetValueOrDefault();
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
494long contentLength = content.Headers.ContentLength.GetValueOrDefault();
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (4)
729(request.Content.Headers.ContentLength == null || request.Content.Headers.ContentLength.GetValueOrDefault() > Expect100ErrorSendThreshold) && 755if (response.Headers.ConnectionClose.GetValueOrDefault()) 817long contentLength = response.Content.Headers.ContentLength.GetValueOrDefault(); 950new ContentLengthWriteStream(this, request.Content.Headers.ContentLength.GetValueOrDefault());
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (1)
645if (request.HasHeaders && request.Headers.TransferEncodingChunked.GetValueOrDefault())
System.Net.Sockets (1)
System\Net\Sockets\TCPListener.cs (1)
283SetIPProtectionLevel(_allowNatTraversal.GetValueOrDefault());
System.Net.WebSockets (2)
System\Net\WebSockets\Compression\WebSocketInflater.cs (1)
175output[written] = _remainingByte.GetValueOrDefault();
System\Net\WebSockets\ManagedWebSocket.cs (1)
662headerLength = maskOffset.GetValueOrDefault() + MaskLength;
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (10)
723TimeSpan baseOffset = parsedBaseOffset.GetValueOrDefault().Negate(); // offsets are backwards in POSIX notation 738daylightSavingsTimeSpan = parsedDaylightSavings.GetValueOrDefault().Negate(); // offsets are backwards in POSIX notation 755dstStart.GetValueOrDefault(), 756dstEnd.GetValueOrDefault(), 809result = result.GetValueOrDefault().Negate(); 826timeOffset = new TimeSpan(timeOffset.GetValueOrDefault().Hours, timeOffset.GetValueOrDefault().Minutes, timeOffset.GetValueOrDefault().Seconds); 827if (timeOffset.GetValueOrDefault() < TimeSpan.Zero) 836timeOfDay += timeOffset.GetValueOrDefault();
src\System\Runtime\InteropServices\NativeLibrary.CoreCLR.cs (1)
17(uint)searchPath.GetValueOrDefault(),
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ComInterfaceMarshaller.cs (1)
82throw new InvalidCastException($"Unable to cast the provided managed object to a COM interface with ID '{TargetInterfaceIID.GetValueOrDefault():B}'");
System.Security.Cryptography (15)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (2)
44int saltSize = digestValueLength.GetValueOrDefault(); 100int saltSize = digestValueLength.GetValueOrDefault();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
93authSafeBytes = signedData.EncapContentInfo.Content.GetValueOrDefault();
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\Pkcs12LoaderLimits.cs (1)
395CheckNonNegative(value.GetValueOrDefault(), paramName);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
645totalLength = decoded.GetValueOrDefault() + decodedLength + 1;
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
416attr.AttrValues[i] = providerName.GetValueOrDefault().AttrValues[0];
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.manual.cs (1)
27public DateTimeOffset GetValue() => (UtcTime ?? GeneralTime).GetValueOrDefault();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
358Helpers.ValidateDer(signatureAlgorithmAsn.Parameters.GetValueOrDefault().Span);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
155X509RevocationReason reasonValue = reason.GetValueOrDefault();
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (1)
395return stringEncodingType.GetValueOrDefault();
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (1)
560decoded.DirectoryName.GetValueOrDefault().Span);
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (2)
90pathLengthConstraint.GetValueOrDefault(), 171pathLengthConstraint = constraints.PathLengthConstraint.GetValueOrDefault();
System\Security\Cryptography\X509Certificates\X509SubjectAlternativeNameExtension.cs (2)
98ReadOnlySpan<byte> value = item.IPAddress.GetValueOrDefault().Span; 124switch (item.IPAddress.GetValueOrDefault().Length)
System.Security.Cryptography.Cose (3)
System\Security\Cryptography\Cose\CoseMessage.cs (1)
359List<CoseSignature> signatures = new List<CoseSignature>(signaturesLength.GetValueOrDefault());
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (1)
602CoseHelpers.WriteContent(writer, Content.GetValueOrDefault().Span, !Content.HasValue);
System\Security\Cryptography\Cose\CoseSign1Message.cs (1)
1028CoseHelpers.WriteContent(writer, Content.GetValueOrDefault().Span, !Content.HasValue);
System.Security.Cryptography.Pkcs (8)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (2)
44int saltSize = digestValueLength.GetValueOrDefault(); 100int saltSize = digestValueLength.GetValueOrDefault();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
93authSafeBytes = signedData.EncapContentInfo.Content.GetValueOrDefault();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161Accuracy.manual.cs (3)
511_000_000L * Seconds.GetValueOrDefault() + 521000L * Millis.GetValueOrDefault() + 53Micros.GetValueOrDefault();
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (2)
123resp.Status.FailInfo.GetValueOrDefault())); 130if (!Rfc3161TimestampToken.TryDecode(resp.TimeStampToken.GetValueOrDefault(), out token, out _))
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\RegexFindOptimizations.cs (2)
664(char low, char high) = primarySet.Range.GetValueOrDefault(); 820(RegexNode loopNode, (char Char, string? String, StringComparison StringComparison, char[]? Chars) literal) = LiteralAfterLoop.GetValueOrDefault();
System\Text\RegularExpressions\Symbolic\BitVector.cs (1)
183return _hashcode.GetValueOrDefault();
Test.Utilities (13)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
Text.Analyzers (15)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (4)
141=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 144=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (4)
102=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 105=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (4)
121=> left.GetValueOrDefault().Equals(right.GetValueOrDefault()); 124=> !left.GetValueOrDefault().Equals(right.GetValueOrDefault());
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
57depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
55depthOfInheritance = Math.Max(child.DepthOfInheritance.GetValueOrDefault(), depthOfInheritance);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
47return resolution.GetValueOrDefault();
xunit.assert (2)
BooleanAsserts.cs (2)
81 if (!condition.HasValue || condition.GetValueOrDefault()) 140 if (!condition.HasValue || !condition.GetValueOrDefault())
xunit.console (2)
ConsoleRunner.cs (2)
286if (parallelizeAssemblies.GetValueOrDefault()) 357executionOptions.SetDisableParallelization(!parallelizeTestCollections.GetValueOrDefault());