53 references to IsNullOrEmpty
Microsoft.AspNetCore.Authentication.Test (3)
OpenIdConnect\OpenIdConnectChallengeTests.cs (1)
453Assert.False(StringSegment.IsNullOrEmpty(correlationCookie.Value));
OpenIdConnect\OpenIdConnectEventTests.cs (1)
1018Assert.True(StringSegment.IsNullOrEmpty(parsedValues.Single().Value));
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
1018Assert.True(StringSegment.IsNullOrEmpty(parsedValues.Single().Value));
Microsoft.AspNetCore.Http (5)
Features\FormFeature.cs (1)
381if (StringSegment.IsNullOrEmpty(boundary))
src\Http\Shared\CookieHeaderParserShared.cs (4)
37if (parsedName == null || StringSegment.IsNullOrEmpty(parsedName.Value) 38|| parsedValue == null || StringSegment.IsNullOrEmpty(parsedValue.Value)) 69if (StringSegment.IsNullOrEmpty(value) || (index == value.Length)) 147if (StringSegment.IsNullOrEmpty(input) || (offset >= input.Length))
Microsoft.AspNetCore.Http.Abstractions (4)
HostString.cs (3)
111if (!StringSegment.IsNullOrEmpty(port) 151return StringSegment.IsNullOrEmpty(port) 347if (StringSegment.IsNullOrEmpty(value))
Internal\ParsingHelpers.cs (1)
25if (!StringSegment.IsNullOrEmpty(segment.Data))
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\TextOutputFormatter.cs (1)
200if (!StringSegment.IsNullOrEmpty(charset))
Microsoft.Net.Http.Headers (40)
BaseHeaderParser.cs (1)
26if (StringSegment.IsNullOrEmpty(value) || (index == value.Length))
CacheControlHeaderValue.cs (1)
524if (StringSegment.IsNullOrEmpty(input) || (startIndex >= input.Length))
ContentDispositionHeaderValue.cs (4)
202if (!StringSegment.IsNullOrEmpty(fileName)) 280if (StringSegment.IsNullOrEmpty(input) || (startIndex >= input.Length)) 336if (StringSegment.IsNullOrEmpty(dispositionType)) 433if (StringSegment.IsNullOrEmpty(value))
ContentDispositionHeaderValueIdentityExtensions.cs (4)
23&& (!StringSegment.IsNullOrEmpty(header.FileName) || !StringSegment.IsNullOrEmpty(header.FileNameStar)); 36&& StringSegment.IsNullOrEmpty(header.FileName) && StringSegment.IsNullOrEmpty(header.FileNameStar);
ContentRangeHeaderValue.cs (1)
233if (StringSegment.IsNullOrEmpty(input) || (startIndex >= input.Length))
EntityTagHeaderValue.cs (2)
50if (StringSegment.IsNullOrEmpty(tag)) 216if (StringSegment.IsNullOrEmpty(input) || (startIndex >= input.Length))
HeaderUtilities.cs (2)
73if (StringSegment.IsNullOrEmpty(value)) 605return !StringSegment.IsNullOrEmpty(input) && input.Length >= 2 && input[0] == '"' && input[input.Length - 1] == '"';
MediaTypeHeaderValue.cs (6)
84if (StringSegment.IsNullOrEmpty(value)) 117if (charset.HasValue && !StringSegment.IsNullOrEmpty(charset)) 158if (StringSegment.IsNullOrEmpty(value)) 455if (StringSegment.IsNullOrEmpty(otherMediaType)) 566if (StringSegment.IsNullOrEmpty(input) || (startIndex >= input.Length)) 655if (StringSegment.IsNullOrEmpty(mediaType))
NameValueHeaderValue.cs (9)
122if (!StringSegment.IsNullOrEmpty(_value)) 156if (StringSegment.IsNullOrEmpty(_value)) 158return StringSegment.IsNullOrEmpty(other._value); 193if (StringSegment.IsNullOrEmpty(value) || (GetValueLength(value, 0) == value.Length)) 271if (!StringSegment.IsNullOrEmpty(_value)) 299if (!StringSegment.IsNullOrEmpty(values[i].Value)) 342if (StringSegment.IsNullOrEmpty(input) || (startIndex >= input.Length)) 396if ((StringSegment.IsNullOrEmpty(input)) || (startIndex >= input.Length)) 484if (!(StringSegment.IsNullOrEmpty(value) || (GetValueLength(value, 0) == value.Length)))
RangeConditionHeaderValue.cs (1)
140if (StringSegment.IsNullOrEmpty(input) || (startIndex + 1 >= input.Length))
RangeHeaderValue.cs (1)
158if (StringSegment.IsNullOrEmpty(input) || (startIndex >= input.Length))
RangeItemHeaderValue.cs (2)
112if ((StringSegment.IsNullOrEmpty(input)) || (startIndex >= input.Length)) 162if (StringSegment.IsNullOrEmpty(input) || (startIndex >= input.Length))
SetCookieHeaderValue.cs (1)
480if (StringSegment.IsNullOrEmpty(input) || (offset >= input.Length))
src\Http\Shared\CookieHeaderParserShared.cs (4)
37if (parsedName == null || StringSegment.IsNullOrEmpty(parsedName.Value) 38|| parsedValue == null || StringSegment.IsNullOrEmpty(parsedValue.Value)) 69if (StringSegment.IsNullOrEmpty(value) || (index == value.Length)) 147if (StringSegment.IsNullOrEmpty(input) || (offset >= input.Length))
StringWithQualityHeaderValue.cs (1)
191if (StringSegment.IsNullOrEmpty(input) || (startIndex >= input.Length))