17 references to HasValue
Microsoft.AspNetCore.Diagnostics (1)
StatusCodePage\StatusCodePagesExtensions.cs (1)
185OriginalQueryString = originalQueryString.HasValue ? originalQueryString.Value : null,
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\AcceptanceTests.cs (1)
63if (context.Request.QueryString.HasValue)
Microsoft.AspNetCore.Http (1)
src\Shared\Debugger\HttpContextDebugFormatter.cs (1)
96!request.QueryString.HasValue)
Microsoft.AspNetCore.Http.Abstractions (8)
QueryString.cs (8)
68return HasValue ? Value.Replace("#", "%23") : string.Empty; 175if (!HasValue || Value.Equals("?", StringComparison.Ordinal)) 179if (!other.HasValue || other.Value.Equals("?", StringComparison.Ordinal)) 199if (!HasValue || Value.Equals("?", StringComparison.Ordinal)) 216if (!HasValue && !other.HasValue) 232return !HasValue; 243return (HasValue ? Value.GetHashCode() : 0);
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
QueryStringTests.cs (4)
22Assert.False(query.HasValue); 26Assert.False(query.HasValue); 30Assert.False(query.HasValue); 38Assert.True(query.HasValue);
Microsoft.AspNetCore.Localization (1)
QueryStringRequestCultureProvider.cs (1)
32if (!request.QueryString.HasValue)
Microsoft.AspNetCore.Rewrite (1)
UrlActions\RewriteAction.cs (1)
70if (query.HasValue)