1145 references to IsEmpty
aspire (2)
Mcp\Docs\LlmsTxtParser.cs (2)
173if (docSpan.IsEmpty) 491if (trimmed.IsEmpty || trimmed[0] is not '#')
Aspire.Azure.Npgsql (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
134if (principalName.IsEmpty || !beginning.EndsWith("providers/Microsoft.ManagedIdentity/userAssignedIdentities", StringComparison.OrdinalIgnoreCase))
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
134if (principalName.IsEmpty || !beginning.EndsWith("providers/Microsoft.ManagedIdentity/userAssignedIdentities", StringComparison.OrdinalIgnoreCase))
Aspire.Hosting.Docker (4)
EnvVarEscaper.cs (4)
30if (input.IsEmpty) 50if (input.IsEmpty) 199if (content.IsEmpty) 339if (name.IsEmpty || !IsLetterOrUnderscore(name[0]))
cdac-build-tool (1)
_generated\0\RegexGenerator.g.cs (1)
286if (slice.IsEmpty || slice[0] != '"')
dotnet (1)
_generated\187\RegexGenerator.g.cs (1)
531if (slice.IsEmpty || slice[0] != '\\')
dotnet-aot (1)
_generated\91\RegexGenerator.g.cs (1)
119if (slice.IsEmpty || slice[0] != '\\')
dotnet-dev-certs (5)
_generated\10\RegexGenerator.g.cs (5)
185if (slice.IsEmpty || slice[0] != '"') 219if (slice.IsEmpty || slice[0] != '"') 339if (slice.IsEmpty || slice[0] != '.') 459if (slice.IsEmpty || slice[0] != '.') 498if (slice.IsEmpty || slice[0] != 'c')
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\TextEncodingKind.cs (1)
94=> !encoding.Preamble.IsEmpty;
ILCompiler.Compiler (1)
Compiler\SourceLinkWriter.cs (1)
49string sourceLinkData = sourceLinkBytes.IsEmpty
ILCompiler.TypeSystem (2)
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8Span.cs (1)
19public bool IsEmpty => _value.IsEmpty;
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
207if (kinds.IsEmpty)
illink (2)
ILLink.RoslynAnalyzer (7)
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
218if (!assemblyName.IsEmpty && AssemblyNameParser.TryParse(assemblyName, ref parts))
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (3)
34if (trimmedName.IsEmpty) 48if (parsedName is null || !parser._inputString.IsEmpty) // unconsumed input == error 243if (_inputString.IsEmpty)
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (3)
202if (!span.IsEmpty && span[0] == '[') 206if (!trimmed.IsEmpty) 334if (!span.IsEmpty && span[0] == value)
Microsoft.AspNetCore.Authentication.Negotiate (1)
_generated\1\RegexGenerator.g.cs (1)
151if (slice.IsEmpty || slice[0] != ',')
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Components\Shared\src\UrlValueConstraint.cs (1)
165if (value.IsEmpty)
Microsoft.AspNetCore.Components.Endpoints (1)
CacheView\CacheViewKeyResolver.cs (1)
172if (!name.IsEmpty)
Microsoft.AspNetCore.Components.QuickGrid (1)
src\aspnetcore\src\Components\Shared\src\UrlValueConstraint.cs (1)
165if (value.IsEmpty)
Microsoft.AspNetCore.Components.Web (1)
Routing\NavLink.cs (1)
170if (uri.IsEmpty)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (5)
_generated\0\RegexGenerator.g.cs (5)
185if (slice.IsEmpty || slice[0] != '"') 219if (slice.IsEmpty || slice[0] != '"') 339if (slice.IsEmpty || slice[0] != '.') 459if (slice.IsEmpty || slice[0] != '.') 498if (slice.IsEmpty || slice[0] != 'c')
Microsoft.AspNetCore.Identity (1)
Passkeys\BufferSource.cs (1)
119if (span.IsEmpty)
Microsoft.AspNetCore.Localization (6)
CookieRequestCultureProvider.cs (6)
91if (cultureName.IsEmpty && uiCultureName.IsEmpty) 97if (!cultureName.IsEmpty && uiCultureName.IsEmpty) 102else if (cultureName.IsEmpty && !uiCultureName.IsEmpty)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DefaultEditorTemplates.cs (1)
476HasContent |= buffer.IsEmpty;
Microsoft.AspNetCore.OutputCaching (3)
FormatterBinaryWriter.cs (2)
180if (value.IsEmpty) 205while (!value.IsEmpty);
RecyclableSequenceBuilder.cs (1)
89while (!buffer.IsEmpty)
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArrayBuilder`1.cs (2)
266if (items.IsEmpty) 421if (items.IsEmpty)
Microsoft.AspNetCore.ResponseCaching (1)
src\aspnetcore\src\Shared\SegmentWriteStream.cs (1)
135while (!buffer.IsEmpty)
Microsoft.AspNetCore.Routing (2)
Matching\HostMatcherPolicy.cs (2)
171if (!hostSpan[hostParts[0]].IsEmpty) 178if (!hostSpan[hostParts[0]].IsEmpty)
Microsoft.AspNetCore.Server.HttpSys (3)
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
UrlPrefix.cs (1)
129if (!portString.IsEmpty)
Microsoft.AspNetCore.Server.IIS (2)
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
Microsoft.AspNetCore.Server.Kestrel.Core (13)
_generated\1\RegexGenerator.g.cs (5)
186if (slice.IsEmpty || slice[0] != '"') 220if (slice.IsEmpty || slice[0] != '"') 341if (slice.IsEmpty || slice[0] != '.') 462if (slice.IsEmpty || slice[0] != '.') 501if (slice.IsEmpty || slice[0] != 'c')
Internal\Http\HttpRequestHeaders.cs (1)
105if (value.IsEmpty ||
Internal\Http2\Http2Connection.cs (1)
1816if (name.IsEmpty || name[0] != (byte)':')
Internal\Http2\Http2Stream.cs (1)
414if (pathSegment.IsEmpty || pathSegment[0] != '/')
Internal\Http3\Http3Stream.cs (2)
515if (name.IsEmpty || name[0] != (byte)':') 1192if (pathSegment.IsEmpty || pathSegment[0] != '/')
Internal\Infrastructure\HttpUtilities.cs (1)
87if (span.IsEmpty)
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
Microsoft.AspNetCore.TestHost (1)
WebHostBuilderExtensions.cs (1)
186if (solutionNames.IsEmpty)
Microsoft.AspNetCore.WebUtilities (1)
MultipartReaderStream.cs (1)
238if (!stream.FinalBoundaryFound && !remainder.IsEmpty)
Microsoft.Build (69)
_generated\0\RegexGenerator.g.cs (65)
1061if (slice.IsEmpty || slice[0] != '>') 1095if (!slice.IsEmpty && ((ch = slice[0]) < 128 ? char.IsAsciiLetter(ch) : RegexRunner.CharInClass((char)ch, "\0\u0006\0A[a{KÅ"))) 1103if (slice.IsEmpty || slice[0] != ':') 1197if (slice.IsEmpty || slice[0] != ':') 1316if (slice.IsEmpty || slice[0] == ':') 1336if (slice.IsEmpty || slice[0] != ' ') 1404if (slice.IsEmpty) 1460if (slice.IsEmpty || slice[0] != ' ') 1615if (slice.IsEmpty || slice[0] != ':') 1879if (slice.IsEmpty || slice[0] != ':') 1910if (slice.IsEmpty || slice[0] != ':') 1950if (slice.IsEmpty || slice[0] != ':') 1962if (slice.IsEmpty || slice[0] != ' ') 2009if (slice.IsEmpty || slice[0] != ':') 2173if (slice.IsEmpty || slice[0] != '>') 2257if (slice.IsEmpty || slice[0] != '(') 2284if (slice.IsEmpty || slice[0] != ')') 2575if (slice.IsEmpty || slice[0] != '-') 2730if (slice.IsEmpty || slice[0] != ',') 2886if (slice.IsEmpty || slice[0] != ',') 2914if (slice.IsEmpty || slice[0] != '-') 3071if (slice.IsEmpty || slice[0] != ',') 3099if (slice.IsEmpty || slice[0] != ',') 3127if (slice.IsEmpty || slice[0] != ',') 3279if (slice.IsEmpty || slice[0] != '[') 3312if (slice.IsEmpty || (((ch = slice[0]) == '#') | (ch == ';'))) 3424if (slice.IsEmpty || slice[0] != ']') 3480if (slice.IsEmpty || (((ch = slice[0]) != '#') & (ch != ';'))) 3793if (slice.IsEmpty || (((ch = slice[0]) != ':') & (ch != '='))) 3853if (slice.IsEmpty || slice[0] == '\n') 3924if (slice.IsEmpty || (((ch = slice[0]) != '#') & (ch != ';'))) 4133if (slice.IsEmpty || ((slice[0] | 0x2) != '/')) 4183if (slice.IsEmpty || ((slice[0] | 0x20) != 't')) 4220if (slice.IsEmpty || slice[0] != ':') 4233if (slice.IsEmpty) 4438if (slice.IsEmpty || ((slice[0] | 0x2) != '/')) 4488if (slice.IsEmpty || ((slice[0] | 0x20) != 'v')) 4536if (slice.IsEmpty || slice[0] != ':') 4680if (slice.IsEmpty || ((slice[0] | 0x2) != '/')) 4730if (slice.IsEmpty || ((slice[0] | 0x20) != 't')) 4774if (slice.IsEmpty || slice[0] != ':') 4918if (slice.IsEmpty || ((slice[0] | 0x2) != '/')) 4968if (slice.IsEmpty || ((slice[0] | 0x20) != 'c')) 5012if (slice.IsEmpty || slice[0] != ':') 5186if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0)) 5286if (slice.IsEmpty || slice[0] != '\'') 5343if (slice.IsEmpty || slice[0] != ',') 5361if (slice.IsEmpty || slice[0] != '\'') 5427if (slice.IsEmpty || slice[0] != ')') 5559if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0)) 5630if (slice.IsEmpty || slice[0] != '\'') 5677if (slice.IsEmpty || slice[0] != ',') 5695if (slice.IsEmpty || slice[0] != '\'') 5753if (slice.IsEmpty || slice[0] != ')') 6148if (slice.IsEmpty || slice[0] != '=') 6166if (slice.IsEmpty || slice[0] != '"') 6225if (slice.IsEmpty || slice[0] != '"') 6243if (slice.IsEmpty || slice[0] != ',') 6261if (slice.IsEmpty || slice[0] != '"') 6320if (slice.IsEmpty || slice[0] != '"') 6338if (slice.IsEmpty || slice[0] != ',') 6356if (slice.IsEmpty || slice[0] != '"') 6415if (slice.IsEmpty || slice[0] != '"') 6597if (slice.IsEmpty || slice[0] != '=') 6829if (slice.IsEmpty || slice[0] != '.')
Evaluation\Expander.Function.cs (2)
231ProjectErrorUtilities.VerifyThrowInvalidProject(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 981if (remainder.IsEmpty || remainder[0] == '.' || remainder[0] == '[')
Logging\OptimizedStringIndenter.cs (1)
115if (input.IsEmpty)
Logging\TerminalLogger\TerminalLogger.cs (1)
1215if (!projectFileName.IsEmpty &&
Microsoft.Build.Framework (7)
_generated\1\RegexGenerator.g.cs (1)
173if (slice.IsEmpty || !char.IsWhiteSpace(slice[0]))
FileUtilities.cs (1)
665while (!path.IsEmpty)
NodeMode.cs (1)
85if (value.IsEmpty || value.IsWhiteSpace())
Utilities\ProcessExtensions.cs (4)
159if (data.IsEmpty) 170while (!data.IsEmpty && argsFound < maxArgs) 175if (!segment.IsEmpty) 581while (!data.IsEmpty && data[0] == 0)
Microsoft.Build.Tasks.Core (28)
_generated\0\RegexGenerator.g.cs (28)
679if (slice.IsEmpty || slice[0] != '>') 713if (!slice.IsEmpty && ((ch = slice[0]) < 128 ? char.IsAsciiLetter(ch) : RegexRunner.CharInClass((char)ch, "\0\u0006\0A[a{KÅ"))) 721if (slice.IsEmpty || slice[0] != ':') 815if (slice.IsEmpty || slice[0] != ':') 934if (slice.IsEmpty || slice[0] == ':') 954if (slice.IsEmpty || slice[0] != ' ') 1022if (slice.IsEmpty) 1078if (slice.IsEmpty || slice[0] != ' ') 1233if (slice.IsEmpty || slice[0] != ':') 1497if (slice.IsEmpty || slice[0] != ':') 1528if (slice.IsEmpty || slice[0] != ':') 1568if (slice.IsEmpty || slice[0] != ':') 1580if (slice.IsEmpty || slice[0] != ' ') 1627if (slice.IsEmpty || slice[0] != ':') 1791if (slice.IsEmpty || slice[0] != '>') 1875if (slice.IsEmpty || slice[0] != '(') 1902if (slice.IsEmpty || slice[0] != ')') 2193if (slice.IsEmpty || slice[0] != '-') 2348if (slice.IsEmpty || slice[0] != ',') 2504if (slice.IsEmpty || slice[0] != ',') 2532if (slice.IsEmpty || slice[0] != '-') 2689if (slice.IsEmpty || slice[0] != ',') 2717if (slice.IsEmpty || slice[0] != ',') 2745if (slice.IsEmpty || slice[0] != ',') 3018if (slice.IsEmpty || slice[0] != ',') 3897if (slice.IsEmpty || slice[0] != '_') 3925if (slice.IsEmpty || slice[0] != '_') 4089if (slice.IsEmpty || slice[0] != ',')
Microsoft.Build.Utilities.Core (24)
_generated\0\RegexGenerator.g.cs (24)
520if (slice.IsEmpty || slice[0] != '>') 554if (!slice.IsEmpty && ((ch = slice[0]) < 128 ? char.IsAsciiLetter(ch) : RegexRunner.CharInClass((char)ch, "\0\u0006\0A[a{KÅ"))) 562if (slice.IsEmpty || slice[0] != ':') 656if (slice.IsEmpty || slice[0] != ':') 775if (slice.IsEmpty || slice[0] == ':') 795if (slice.IsEmpty || slice[0] != ' ') 863if (slice.IsEmpty) 919if (slice.IsEmpty || slice[0] != ' ') 1074if (slice.IsEmpty || slice[0] != ':') 1338if (slice.IsEmpty || slice[0] != ':') 1369if (slice.IsEmpty || slice[0] != ':') 1409if (slice.IsEmpty || slice[0] != ':') 1421if (slice.IsEmpty || slice[0] != ' ') 1468if (slice.IsEmpty || slice[0] != ':') 1632if (slice.IsEmpty || slice[0] != '>') 1716if (slice.IsEmpty || slice[0] != '(') 1743if (slice.IsEmpty || slice[0] != ')') 2034if (slice.IsEmpty || slice[0] != '-') 2189if (slice.IsEmpty || slice[0] != ',') 2345if (slice.IsEmpty || slice[0] != ',') 2373if (slice.IsEmpty || slice[0] != '-') 2530if (slice.IsEmpty || slice[0] != ',') 2558if (slice.IsEmpty || slice[0] != ',') 2586if (slice.IsEmpty || slice[0] != ',')
Microsoft.CodeAnalysis (7)
_generated\0\RegexGenerator.g.cs (7)
180if (slice.IsEmpty || slice[0] != '[') 213if (slice.IsEmpty || (((ch = slice[0]) == '#') | (ch == ';'))) 325if (slice.IsEmpty || slice[0] != ']') 381if (slice.IsEmpty || (((ch = slice[0]) != '#') & (ch != ';'))) 694if (slice.IsEmpty || (((ch = slice[0]) != ':') & (ch != '='))) 754if (slice.IsEmpty || slice[0] == '\n') 825if (slice.IsEmpty || (((ch = slice[0]) != '#') & (ch != ';')))
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)
Microsoft.CodeAnalysis.CSharp (4)
Lowering\ExtensionMethodBodyRewriter.cs (1)
58if (!rewrittenParameters.IsEmpty)
Parser\LanguageParser_InterpolatedString.cs (3)
251if (text.IsEmpty) 265if (!needsDedentation || indentationWhitespace.IsEmpty) 389if (needsDedentation && !indentationWhitespace.IsEmpty)
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
110if (remaining.IsEmpty)
Microsoft.CodeAnalysis.Razor.Compiler (16)
CSharp\RequiredAttributeParser.cs (1)
94=> _span.IsEmpty;
Language\CodeGeneration\CodeWriter.cs (2)
453if (source.IsEmpty) 524if (source.IsEmpty)
Language\ConfigureDirectivesFeature.cs (1)
19if (fileKinds.IsEmpty)
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (1)
595if (typeNamespace.IsEmpty)
Language\Legacy\CSharpCodeParser.cs (4)
1420if (directiveTextSpan.IsEmpty) 1492if (directiveText.IsEmpty || directiveText[0] == '\'' || directiveText[^1] == '\'') 1506if (typeName.IsEmpty || assemblyName.IsEmpty || assemblyName.IndexOf(',') >= 0)
Language\NamespaceComputer.cs (3)
97if (span.IsEmpty) 136if (token.IsEmpty) 165if (token.IsEmpty)
Language\TagHelperBinder.cs (1)
135if (!tagNamePrefixSpan.IsEmpty)
Language\TagHelperMatchingConventions.cs (3)
34if (tagNameWithoutPrefix.IsEmpty) 141if (span.IsEmpty) 163if (span.IsEmpty)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\TextEncodingKind.cs (1)
94=> !encoding.Preamble.IsEmpty;
Microsoft.Data.Analysis (3)
DataFrameColumns\ArrowStringDataFrameColumn.cs (2)
195if (value.IsEmpty) 216SetValidityBit(Length - 1, !value.IsEmpty);
PrimitiveColumnContainer.cs (1)
506long mapRowIndex = mapIndicesIntSpan.IsEmpty ? mapIndicesLongSpan[spanIndex] : mapIndicesIntSpan[spanIndex];
Microsoft.Diagnostics.DataContractReader.Contracts (2)
Contracts\Notifications_1.cs (1)
44if (exceptionInformation.IsEmpty)
Contracts\RuntimeTypeSystem_1.cs (1)
2292if (!TryGetMethodSignature(methodDescHandle, out ReadOnlySpan<byte> signature) || signature.IsEmpty)
Microsoft.Diagnostics.DataContractReader.Legacy (3)
Dbi\DacDbiImpl.cs (2)
2153bool hasClassInstantiation = !rts.GetInstantiation(mt).IsEmpty; 2154bool hasMethodInstantiation = rts.IsGenericMethodDefinition(md) || !rts.GetGenericMethodInstantiation(md).IsEmpty;
TypeHandleExtensions.cs (1)
56if (!instantiation.IsEmpty)
Microsoft.DotNet.ApiCompatibility (3)
Rules\AssemblyIdentityMustMatch.cs (3)
136if (!leftAssemblyPublicKeyToken.IsEmpty && !leftIdentity.IsRetargetable && !leftAssemblyPublicKeyToken.SequenceEqual(rightAssemblyPublicKeyToken)) 148else if (_settings.StrictMode && !rightAssemblyPublicKeyToken.IsEmpty && !rightIdentity.IsRetargetable && !rightAssemblyPublicKeyToken.SequenceEqual(leftAssemblyPublicKeyToken)) 164if (publicKeyToken.IsEmpty)
Microsoft.DotNet.Cli.Telemetry (1)
Implementation\BreezePartialContent.cs (1)
23if (responseBody.IsEmpty)
Microsoft.DotNet.HotReload.Watch (2)
_generated\0\RegexGenerator.g.cs (2)
618if (slice.IsEmpty) 660if (slice.IsEmpty || slice[0] != ' ')
Microsoft.Extensions.AI.Abstractions (6)
Contents\DataUriParser.cs (2)
70if (span.IsEmpty) 154if (value.IsEmpty)
Utilities\AIJsonUtilities.Schema.Create.cs (4)
274string? localDescription = ctx.Path.IsEmpty && description is not null 367if (ctx.Path.IsEmpty && hasDefaultValue) 379if (ctx.Path.IsEmpty && inferenceOptions.IncludeSchemaKeyword) 757if (ctx.Path.IsEmpty && parameter?.GetCustomAttribute<TAttribute>(inherit: true) is TAttribute attr)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
SerializerTests.cs (1)
278if (!expectedBytes.IsEmpty && !expectedBytes.SequenceEqual(actual))
Microsoft.Extensions.Compliance.Abstractions (2)
Redaction\RedactionStringBuilderExtensions.cs (1)
50if (value.IsEmpty)
Redaction\Redactor.cs (1)
30if (source.IsEmpty)
Microsoft.Extensions.Compliance.Redaction (1)
HmacRedactor.cs (1)
54if (input.IsEmpty)
Microsoft.Extensions.Configuration (5)
ConfigurationKeyComparer.cs (5)
39while (!xSpan.IsEmpty && !ySpan.IsEmpty) 59return xSpan.IsEmpty ? (ySpan.IsEmpty ? 0 : -1) : 1; 63while (!a.IsEmpty && a[0] == KeyDelimiter)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\SourceWriter.cs (1)
81if (remainingText.IsEmpty)
Microsoft.Extensions.DataIngestion (2)
Chunkers\ElementsChunker.cs (2)
151while (!remainingContent.IsEmpty) 184if (!remainingContent.IsEmpty)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (9)
Linux\LinuxUtilizationParserCgroupV1.cs (4)
311if (stats.IsEmpty) 416if (quotaBuffer.IsEmpty || (quotaBuffer.Length == 2 && quotaBuffer[0] == '-' && quotaBuffer[1] == '1')) 434if (periodBuffer.IsEmpty || (periodBuffer.Length == 2 && periodBuffer[0] == '-' && periodBuffer[1] == '1')) 472if (cpuPodWeightBuffer.IsEmpty || (cpuPodWeightBuffer.Length == 2 && cpuPodWeightBuffer[0] == '-' && cpuPodWeightBuffer[1] == '1'))
Linux\LinuxUtilizationParserCgroupV2.cs (5)
122if (fileContent.IsEmpty) 458if (stats.IsEmpty) 674if (quotaBuffer.IsEmpty || (quotaBuffer.Length == 2 && quotaBuffer[0] == '-' && quotaBuffer[1] == '1')) 715if (content.IsEmpty) 807if (cpuPodWeightBuffer.IsEmpty || (cpuPodWeightBuffer.Length == 2 && cpuPodWeightBuffer[0] == '-' && cpuPodWeightBuffer[1] == '1'))
Microsoft.Extensions.Http.Diagnostics (7)
Logging\Internal\HttpHeadersRedactor.cs (7)
58if (!currentItem.IsEmpty) 69if (!firstItem.IsEmpty) 83if (!currentItem.IsEmpty) 93if (!currentItem.IsEmpty) 117if (!firstItem.IsEmpty) 127if (!currentItem.IsEmpty) 142if (!currentItem.IsEmpty)
Microsoft.Maui.Essentials (2)
Types\Shared\WebUtils.shared.cs (2)
34 while (!query.IsEmpty) 51 if (!segment.IsEmpty)
Microsoft.Maui.Graphics (4)
Color.cs (4)
347 if (!colorAsHex.IsEmpty) 397 if (!colorAsHex.IsEmpty) 595 if (!value.IsEmpty) 1000 if (!elem.IsEmpty && elem[elem.Length - 1] == '%' && acceptPercent)
Microsoft.ML.Core (6)
Data\ReadOnlyMemoryUtils.cs (1)
217if (!span.IsEmpty)
Utilities\BigArray.cs (1)
321if (src.IsEmpty)
Utilities\Contracts.cs (1)
956if (args.IsEmpty)
Utilities\MathUtils.cs (2)
145if (a.IsEmpty) 174if (a.IsEmpty)
Utilities\VBufferUtils.cs (1)
413if (dstIndices.IsEmpty)
Microsoft.ML.Core.Tests (1)
UnitTests\TestVBuffer.cs (1)
315Assert.True(a.GetIndices().IsEmpty);
Microsoft.ML.CpuMath (1)
src\Microsoft.ML.Core\Utilities\Contracts.cs (1)
956if (args.IsEmpty)
Microsoft.ML.Data (2)
Data\Conversion.cs (1)
1103Contracts.Assert(!span.IsEmpty);
DataLoadSave\Text\TextSaver.cs (1)
809if (span.IsEmpty)
Microsoft.ML.Tokenizers (83)
Model\BPETokenizer.cs (5)
438if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 497if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 564if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 645if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 697if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Model\CodeGenTokenizer.cs (7)
329if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 427if (textSpan.IsEmpty) 585if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 804if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 941if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 1106if (textSpan.IsEmpty) 1170if (textSpan.IsEmpty)
Model\EnglishRobertaTokenizer.cs (7)
316if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 358if (text.IsEmpty) 417if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 503if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 549if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 664if (text.IsEmpty) 709if (text.IsEmpty)
Model\SentencePieceBpeModel.cs (8)
69if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 289if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 318if (text.IsEmpty) 422if (text.IsEmpty) 611if (textSpan.IsEmpty) 696if (text.IsEmpty) 861if (textSpan.IsEmpty) 965if (text.IsEmpty)
Model\SentencePieceUnigramModel.cs (4)
378if (textToEncode.IsEmpty) 838if (textToEncode.IsEmpty || maxTokenCount <= 0) 1238if (textToEncode.IsEmpty || maxTokenCount <= 0) 1519if (textToEncode.IsEmpty || maxTokenCount <= 0)
Model\TiktokenTokenizer.cs (8)
260if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 301Debug.Assert(!text.IsEmpty); 370if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 422if (text.IsEmpty) 539if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 588if (text.IsEmpty) 664if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 714if (text.IsEmpty)
Model\Word.cs (1)
296if (mapping.IsEmpty)
Model\WordPieceTokenizer.cs (6)
274if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 315Debug.Assert(!text.IsEmpty); 397if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 450if (text.IsEmpty) 549if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 609if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Normalizer\BertNormalizer.cs (1)
128if (original.IsEmpty)
Normalizer\LowerCaseNormalizer.cs (1)
40if (original.IsEmpty)
Normalizer\SentencePieceNormalizationStep.cs (1)
477if (!precompiledCharsMap.IsEmpty)
Normalizer\SentencePieceNormalizer.cs (8)
55if (precompiledCharsMap.IsEmpty) 323Debug.Assert(!input.IsEmpty); 385if (input.IsEmpty) 418if (input.IsEmpty) 428while (!input.IsEmpty) 451if (input.IsEmpty) 467while (!input.IsEmpty) 478if (!sp.IsEmpty)
Normalizer\UpperCaseNormalizer.cs (1)
40if (original.IsEmpty)
PreTokenizer\CompositePreTokenizer.cs (1)
146if (text.IsEmpty)
PreTokenizer\RegexPreTokenizer.cs (1)
98if (text.IsEmpty)
PreTokenizer\RobertaPreTokenizer.cs (1)
42if (text.IsEmpty)
RegexGenerator.g.cs (19)
310if (slice.IsEmpty || slice[0] != '\'') 400if (!slice.IsEmpty && ((ch = slice[0]) < 128 ? ("\udbff\uffff\uffffﰀ\u0001\u0001"[ch >> 4] & (1 << (ch & 0xF))) != 0 : RegexRunner.CharInClass((char)ch, "\u0001\u0004\f\n\v\r\u000e\0\u0002\u0004\u0005\u0003\u0001\0\0\t\n\v\0"))) 461if (!slice.IsEmpty && slice[0] == ' ') 571if (slice.IsEmpty || (((ch = slice[0]) != '\n') & (ch != '\r'))) 629if (slice.IsEmpty || char.IsWhiteSpace(slice[0])) 651if (slice.IsEmpty || !char.IsWhiteSpace(slice[0])) 758if (slice.IsEmpty || slice[0] != '\'') 826if (!slice.IsEmpty && slice[0] == ' ') 861if (!slice.IsEmpty && slice[0] == ' ') 896if (!slice.IsEmpty && slice[0] == ' ') 1003if (slice.IsEmpty || char.IsWhiteSpace(slice[0])) 1025if (slice.IsEmpty || !char.IsWhiteSpace(slice[0])) 1147if (!slice.IsEmpty && ((ch = slice[0]) < 128 ? ("\udbff\uffff\uffffﰀ\u0001\u0001"[ch >> 4] & (1 << (ch & 0xF))) != 0 : RegexRunner.CharInClass((char)ch, "\u0001\u0004\f\n\v\r\u000e\0\u0002\u0004\u0005\u0003\u0001\0\0\t\n\v\0"))) 1247if (slice.IsEmpty || slice[0] != '\'') 1394if (!slice.IsEmpty && ((ch = slice[0]) < 128 ? ("\udbff\uffff\uffffﰀ\u0001\u0001"[ch >> 4] & (1 << (ch & 0xF))) != 0 : RegexRunner.CharInClass((char)ch, "\u0001\u0004\f\n\v\r\u000e\0\u0002\u0004\u0005\u0003\u0001\0\0\t\n\v\0"))) 1494if (slice.IsEmpty || slice[0] != '\'') 1665if (!slice.IsEmpty && slice[0] == ' ') 1829if (slice.IsEmpty || char.IsWhiteSpace(slice[0])) 1993if (slice.IsEmpty || !char.IsPunctuation(slice[0]))
Utils\Helpers.cs (3)
69Debug.Assert(!text.IsEmpty); 123Debug.Assert(!text.IsEmpty); 161Debug.Assert(!text.IsEmpty);
Microsoft.ML.Tokenizers.Tests (5)
NormalizerTests.cs (1)
153if (original.IsEmpty)
PreTokenizerTests.cs (1)
80if (text.IsEmpty)
src\Microsoft.ML.Tokenizers\Utils\Helpers.cs (3)
69Debug.Assert(!text.IsEmpty); 123Debug.Assert(!text.IsEmpty); 161Debug.Assert(!text.IsEmpty);
Microsoft.ML.Transforms (1)
Text\StopWordsRemovingTransformer.cs (1)
918if (!stopword.IsEmpty)
Microsoft.NET.Build.Containers (1)
_generated\0\RegexGenerator.g.cs (1)
184if (slice.IsEmpty || slice[0] != '"')
Microsoft.NET.StringTools (5)
InternableString.cs (3)
232if (_inlineSpan.IsEmpty && _spans?[0].Length == Length) 245if (!_inlineSpan.IsEmpty) 292if (_inlineSpan.IsEmpty && _spans?.Count == 1 && _spans[0].Length == Length)
SpanBasedStringBuilder.cs (2)
167if (_spans.Count == 0 && other.IsEmpty) 172if (_spans.Count == 0 || other.IsEmpty || Length != other.Length)
Microsoft.Private.Windows.Core (9)
_generated\129\Windows.Win32.IDispatch.g.cs (1)
103 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\130\Windows.Win32.IDispatchEx.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\156\Windows.Win32.IPictureDisp.g.cs (1)
86 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\164\Windows.Win32.ITypeInfo.g.cs (1)
227 if (!rgszNames.IsEmpty && !pMemId.IsEmpty && rgszNames.Length != pMemId.Length) throw new ArgumentException();
_generated\252\Windows.Win32.System_Com_ITypeInfo_Extensions.g.cs (1)
95 if (!rgszNames.IsEmpty && !pMemId.IsEmpty && rgszNames.Length != pMemId.Length) throw new ArgumentException();
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\Text\EncodingExtensions.cs (2)
18if (source.IsEmpty) 37if (source.IsEmpty)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
267return bytes.IsEmpty ? string.Empty : encoding.GetString(bytes);
System\SpanReader.cs (1)
77if (_unread.IsEmpty)
PresentationBuildTasks (2)
MS\Internal\MarkupCompiler\PathInternal.cs (1)
179if (path.IsEmpty)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (1)
54if (fullName.IsEmpty)
PresentationCore (4)
System\Windows\Input\Command\MouseActionConverter.cs (1)
61_ when mouseActionToken.IsEmpty => MouseAction.None, // Special casing as produced by "ConvertTo"
System\Windows\Input\InputScopeConverter.cs (1)
116if (!spanSource.IsEmpty)
System\Windows\PresentationSource.cs (1)
573if (visuals.IsEmpty)
System\Windows\TextDecorationCollectionConverter.cs (1)
87if (decorationsSpan.IsEmpty || decorationsSpan.Equals("None", StringComparison.OrdinalIgnoreCase))
PresentationFramework (16)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
518if (!xValue.Trim().IsEmpty && !yValue.Trim().IsEmpty)
MS\Internal\AppModel\ResourceContainer.cs (3)
213if (!assemblyVersion.IsEmpty) 219if (!assemblyToken.IsEmpty) 222if (!assemblyVersion.IsEmpty)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
599if (tokens.IsEmpty)
System\Windows\Annotations\Annotation.cs (3)
637if (name.IsEmpty) 648if (@namespace.IsEmpty || name.IsEmpty)
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12250return args.IsEmpty ? string.Empty : string.Format(CultureInfo.InvariantCulture, s_format[args.Length], args);
System\Windows\Controls\VisualStates.cs (1)
415if (stateNames.IsEmpty)
System\Windows\Documents\TextStore.cs (1)
4838return args.IsEmpty ? string.Empty : string.Format(CultureInfo.InvariantCulture, s_format[args.Length], args);
System\Windows\Documents\XamlToRtfWriter.cs (1)
3570if (units.IsEmpty)
System\Windows\LengthConverter.cs (1)
208if (valueSpan.IsEmpty)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
2092if (assemblyName.TrimStart().IsEmpty)
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
353if (!value.IsEmpty)
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1851if ((culture != null) && !zoomString.IsEmpty)
RepoTasks (5)
_generated\0\RegexGenerator.g.cs (5)
185if (slice.IsEmpty || slice[0] != '"') 219if (slice.IsEmpty || slice[0] != '"') 339if (slice.IsEmpty || slice[0] != '.') 459if (slice.IsEmpty || slice[0] != '.') 498if (slice.IsEmpty || slice[0] != 'c')
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)
Shared (5)
ServerSentEvents\Helpers.cs (2)
47if (value.IsEmpty) 60if (value.IsEmpty)
ServerSentEvents\SseParser_1.cs (3)
337if (line.IsEmpty) 369if (!fieldValue.IsEmpty && fieldValue[0] == (byte)' ') 393if (!remainder.IsEmpty &&
System.Collections.Immutable (14)
System\Collections\Frozen\FrozenDictionary.cs (1)
47if (source.IsEmpty)
System\Collections\Frozen\String\KeyAnalyzer.cs (1)
32Debug.Assert(!uniqueStrings.IsEmpty);
System\Collections\Frozen\String\OrdinalStringFrozenSet.cs (2)
102(!x.IsEmpty || y is not null) && x.SequenceEqual(y.AsSpan()); 109(!x.IsEmpty || y is not null) && x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase);
System\Collections\Immutable\ImmutableArray_1.cs (3)
958if (items.IsEmpty) 985if (items.IsEmpty || self.IsEmpty) 1512Debug.Assert(!items.IsEmpty);
System\Collections\Immutable\ImmutableArray.cs (1)
93if (items.IsEmpty)
System\Collections\Immutable\ImmutableList_1.cs (2)
238if (items.IsEmpty) 247if (items.IsEmpty)
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
268if (items.IsEmpty)
System\Collections\Immutable\ImmutableQueue.cs (1)
88if (items.IsEmpty)
System\Collections\Immutable\ImmutableSortedSet_1.cs (2)
1243if (this.IsEmpty && addedItems.IsEmpty) 1247if (addedItems.IsEmpty)
System.CommandLine (1)
EnvironmentVariablesDirective.cs (1)
60if (!variable.IsEmpty)
System.Data.Common (4)
_generated\0\RegexGenerator.g.cs (4)
176if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("㸀\0\u0001ࠀ\0\0\0\0"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\0\u0002\u0001;<d"))) 453if (slice.IsEmpty || slice[0] != '{') 476if (slice.IsEmpty || (((ch = slice[0]) == '\0') | (ch == '}'))) 554if (slice.IsEmpty || slice[0] != '}')
System.Data.Odbc (4)
_generated\1\RegexGenerator.g.cs (4)
176if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("㸀\0\u0001ࠀ\0\0\0\0"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\0\u0002\u0001;<d"))) 453if (slice.IsEmpty || slice[0] != '{') 476if (slice.IsEmpty || (((ch = slice[0]) == '\0') | (ch == '}'))) 554if (slice.IsEmpty || slice[0] != '}')
System.Data.OleDb (4)
_generated\4\RegexGenerator.g.cs (4)
176if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("㸀\0\u0001ࠀ\0\0\0\0"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\0\u0002\u0001;<d"))) 453if (slice.IsEmpty || slice[0] != '{') 476if (slice.IsEmpty || (((ch = slice[0]) == '\0') | (ch == '}'))) 554if (slice.IsEmpty || slice[0] != '}')
System.Diagnostics.DiagnosticSource (5)
System\Diagnostics\W3CPropagator.cs (5)
178if (entry.IsEmpty) 287if (keySpan.IsEmpty || IsInvalidBaggageKey(keySpan)) 453key.IsEmpty || 465value.IsEmpty || value.Length > MaxTraceStateValueLength || value[value.Length - 1] == Space || 495if (key.IsEmpty || IsInvalidBaggageKey(key))
System.Diagnostics.Process (1)
src\runtime\src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (1)
421if (lineSpan[lineParts[0]] is "0" && lineSpan[lineParts[1]].IsEmpty)
System.Drawing.Common (3)
System\Drawing\Graphics.cs (3)
1738if (s.IsEmpty) 1793if (text.IsEmpty) 1951if (text.IsEmpty)
System.Formats.Asn1 (25)
System\Formats\Asn1\Asn1Tag.cs (1)
163if (source.IsEmpty)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (4)
213if (chars.IsEmpty) 241if (bytes.IsEmpty) 280if (chars.IsEmpty) 315if (bytes.IsEmpty)
System\Formats\Asn1\AsnDecoder.BitString.cs (1)
473while (!cur.IsEmpty)
System\Formats\Asn1\AsnDecoder.cs (4)
331if (source.IsEmpty) 577while (!cur.IsEmpty) 678if (smaller.IsEmpty) 930public readonly bool HasData => !_data.IsEmpty;
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (5)
192Debug.Assert(!contents.IsEmpty); 217if (contents.IsEmpty) 267Debug.Assert(!contents.IsEmpty); 295if (contents.IsEmpty) 328if (!contents.IsEmpty)
System\Formats\Asn1\AsnDecoder.Integer.cs (1)
403if (contents.IsEmpty)
System\Formats\Asn1\AsnDecoder.OctetString.cs (1)
343while (!cur.IsEmpty)
System\Formats\Asn1\AsnDecoder.Oid.cs (1)
308while (!contents.IsEmpty)
System\Formats\Asn1\AsnDecoder.SetOf.cs (1)
107while (!remaining.IsEmpty)
System\Formats\Asn1\AsnDecoder.UtcTime.cs (1)
193Debug.Assert(contents.IsEmpty);
System\Formats\Asn1\AsnWriter.BitString.cs (1)
62byte lastByte = bitString.IsEmpty ? (byte)0 : bitString[bitString.Length - 1];
System\Formats\Asn1\AsnWriter.Integer.cs (2)
221if (value.IsEmpty) 252if (value.IsEmpty)
System\Formats\Asn1\AsnWriter.Oid.cs (2)
62if (!wellKnownContents.IsEmpty) 128while (!remaining.IsEmpty)
System.Formats.Cbor (3)
System\Formats\Cbor\CborConformanceLevel.cs (2)
221Debug.Assert(!left.IsEmpty && !right.IsEmpty);
System\Formats\Cbor\Writer\CborWriter.cs (1)
183if (!encodedValue.IsEmpty)
System.Formats.Tar (4)
src\runtime\src\libraries\Common\src\System\IO\Archiving.Utils.Unix.cs (1)
23return (path.IsEmpty, appendPathSeparator) switch
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
96return path.IsEmpty;
System\Formats\Tar\TarHeader.Write.cs (2)
952dirName = dirName.IsEmpty ? "." : dirName; 955fileName = fileName.IsEmpty ? "." : fileName;
System.IO.Compression (24)
System\IO\Compression\DeflateEncoder.cs (1)
202if (source.IsEmpty && !isFinalBlock)
System\IO\Compression\DeflateZLib\DeflateStream.cs (1)
572if (buffer.IsEmpty)
System\IO\Compression\WinZipAesStream.cs (1)
481while (!buffer.IsEmpty)
System\IO\Compression\ZipArchiveEntry.Async.cs (6)
81if (IsEncrypted && password.IsEmpty) 108if (IsEncrypted && password.IsEmpty) 118bool usePassword = IsEncrypted && !password.IsEmpty; 131if (IsEncrypted && password.IsEmpty && access != FileAccess.Read) 234if (password.IsEmpty) 525if (IsEncrypted && password.IsEmpty)
System\IO\Compression\ZipArchiveEntry.cs (6)
480if (IsEncrypted && password.IsEmpty) 518if (IsEncrypted && password.IsEmpty) 685Stream decompressor = !password.IsEmpty 1086if (password.IsEmpty) 1277if (IsEncrypted && password.IsEmpty) 1371if (password.IsEmpty)
System\IO\Compression\ZipBlocks.cs (2)
114if (!trailingExtraFieldData.IsEmpty) 133if (!trailingExtraFieldData.IsEmpty)
System\IO\Compression\ZipCryptoStream.cs (1)
324while (!buffer.IsEmpty)
System\IO\Compression\Zstandard\ZstandardDecoder.cs (3)
249if (data.IsEmpty) 285if (source.IsEmpty) 324if (source.IsEmpty)
System\IO\Compression\Zstandard\ZstandardDictionary.cs (2)
43if (buffer.IsEmpty) 91if (samples.IsEmpty)
System\IO\Compression\Zstandard\ZstandardEncoder.cs (1)
209if (source.IsEmpty && !isFinalBlock)
System.IO.Compression.ZipFile (3)
src\runtime\src\libraries\Common\src\System\IO\Archiving.Utils.Windows.cs (1)
65if (path.IsEmpty)
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (1)
160if (encryption != ZipEncryptionMethod.None && password.IsEmpty)
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (1)
258if (!password.IsEmpty)
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Windows.cs (1)
383if (path.IsEmpty)
System.IO.FileSystem.Watcher (6)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
96return path.IsEmpty;
System\IO\FileSystemWatcher.cs (4)
419OnRenamed(new RenamedEventArgs(action, _directory, name.IsEmpty ? null : name.ToString(), oldName.IsEmpty ? null : oldName.ToString())); 446if (handler != null && MatchPattern(name.IsEmpty ? _directory : name)) 448InvokeOn(new FileSystemEventArgs(changeType, _directory, name.IsEmpty ? null : name.ToString()), handler);
System\IO\FileSystemWatcher.Linux.cs (1)
566if (!movedFromDirs.IsEmpty)
System.IO.Hashing (2)
System\IO\Hashing\Adler32.cs (2)
190if (source.IsEmpty) 221Debug.Assert(!source.IsEmpty);
System.IO.Packaging (1)
System\IO\Packaging\ContentType.cs (1)
305while (!parameterAndValue.IsEmpty)
System.Linq (8)
System\Linq\Aggregate.cs (1)
25if (span.IsEmpty)
System\Linq\Average.cs (2)
24if (span.IsEmpty) 96if (span.IsEmpty)
System\Linq\Max.cs (2)
119if (span.IsEmpty) 239if (span.IsEmpty)
System\Linq\Min.cs (2)
101if (span.IsEmpty) 219if (span.IsEmpty)
System\Linq\SegmentedArrayBuilder.cs (1)
150if (!sourceSlice.IsEmpty)
System.Memory (2)
System\Text\EncodingExtensions.cs (2)
443} while (!chars.IsEmpty); 536} while (!bytes.IsEmpty);
System.Net.Http (3)
src\runtime\src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (1)
18if (value.IsEmpty)
System\Net\Http\Headers\HeaderUtilities.cs (2)
89if (utf8.IsEmpty) 107while (!utf8.IsEmpty);
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (1)
18if (value.IsEmpty)
System.Net.HttpListener (2)
System\Net\Managed\HttpListenerRequest.Managed.cs (2)
144if (_version > HttpVersion.Version10 && host.IsEmpty) 158if (host.IsEmpty)
System.Net.Mail (3)
System\Net\Mime\MediaTypeMap.cs (2)
802if (extension.IsEmpty) 808if (!extension.IsEmpty && extension[0] != '.' && extension.Length < MaxExtensionLength)
System\Net\Mime\SmtpDateTime.cs (1)
282if (timeZoneSpan.IsEmpty)
System.Net.Primitives (1)
System\Net\Cookie.cs (1)
490!name.IsEmpty &&
System.Net.Quic (7)
src\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (7)
68Debug.Assert(!clientRandom.IsEmpty); 71clientRandom.IsEmpty || 74(clientHandshakeTrafficSecret.IsEmpty && 75serverHandshakeTrafficSecret.IsEmpty && 76clientTrafficSecret0.IsEmpty && 77serverTrafficSecret0.IsEmpty && 78clientEarlyTrafficSecret.IsEmpty))
System.Net.Security (24)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
244Debug.Assert(cipherList.IsEmpty || cipherList[^1] == 0);
src\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (7)
68Debug.Assert(!clientRandom.IsEmpty); 71clientRandom.IsEmpty || 74(clientHandshakeTrafficSecret.IsEmpty && 75serverHandshakeTrafficSecret.IsEmpty && 76clientTrafficSecret0.IsEmpty && 77serverTrafficSecret0.IsEmpty && 78clientEarlyTrafficSecret.IsEmpty))
src\runtime\src\libraries\Common\src\System\Text\UrlBase64Encoding.cs (1)
36while (!source.IsEmpty)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (2)
338Debug.Assert(incomingBlob.IsEmpty); 354Debug.Assert(!incomingBlob.IsEmpty);
System\Net\NegotiateAuthenticationPal.Unix.cs (2)
487if (index > 0 && username.IndexOf('\\', index + 1) < 0 && domain.IsEmpty) 496if (!username.Contains('@') && !domain.IsEmpty)
System\Net\Security\TlsFrameHelper.cs (4)
435if (p.IsEmpty) 478if (p.IsEmpty) 664if (extensionData.IsEmpty) 717while (!alpnList.IsEmpty)
System\Net\Security\TlsSession.cs (6)
551if (!native.IsEmpty) 573if (source.IsEmpty) 1163if (plaintext.IsEmpty) 1542if (data.IsEmpty) 1843if (data.IsEmpty) 2159if (buffer.IsEmpty)
System\Net\Security\TlsSession.OpenSsl.cs (1)
266if (buffer.IsEmpty)
System.Net.ServerSentEvents (5)
System\Net\ServerSentEvents\Helpers.cs (2)
30if (value.IsEmpty) 43if (value.IsEmpty)
System\Net\ServerSentEvents\SseParser_1.cs (3)
333if (line.IsEmpty) 365if (!fieldValue.IsEmpty && fieldValue[0] == (byte)' ') 389if (!remainder.IsEmpty &&
System.Net.Sockets (3)
System\Net\Sockets\Socket.Unix.cs (2)
228if (!preBuffer.IsEmpty) 250if (!postBuffer.IsEmpty)
System\Net\Sockets\SocketPal.Unix.cs (1)
988socketAddress.IsEmpty ? SysSend(socket, flags, buffer, ref offset, ref count, out errno) :
System.Net.WebClient (1)
src\runtime\src\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (1)
43while (!buffer.IsEmpty)
System.Numerics.Tensors (72)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (1)
78Debug.Assert(!x.IsEmpty);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfMinMaxOperator.cs (10)
26if (x.IsEmpty) 109while (!span.IsEmpty) 177while (!span.IsEmpty) 254while (!span.IsEmpty) 340while (!span.IsEmpty) 408while (!span.IsEmpty) 485while (!span.IsEmpty) 571while (!span.IsEmpty) 639while (!span.IsEmpty) 716while (!span.IsEmpty)
System\Numerics\Tensors\netcore\Tensor.cs (6)
1331if (!dimensions.IsEmpty && dimensions.Length != tensor.Lengths.Length) 1339if (dimensions.IsEmpty) 1843if (ranges.IsEmpty) 2185if (!maximumLengths.IsEmpty) 2200if (!maximumLengths.IsEmpty) 2303if (values.IsEmpty)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
2739linearOffset = 0 - (!strides.IsEmpty ? strides[^1] : 0);
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
20if (x.IsEmpty)
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (2)
47if (x.IsEmpty) 186if (x.IsEmpty)
System\Numerics\Tensors\netcore\TensorPrimitives.Distance.cs (1)
37if (x.IsEmpty)
System\Numerics\Tensors\netcore\TensorPrimitives.IsCanonical.cs (2)
43!x.IsEmpty && 54!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsComplexNumber.cs (2)
43!x.IsEmpty && 54!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsEvenInteger.cs (2)
30!x.IsEmpty && 41!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsFinite.cs (2)
43!x.IsEmpty && 54!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsImaginaryNumber.cs (2)
43!x.IsEmpty && 54!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsInfinity.cs (2)
30!x.IsEmpty && 41!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsInteger.cs (2)
43!x.IsEmpty && 54!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsNaN.cs (2)
43!x.IsEmpty && 54!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegative.cs (2)
43!x.IsEmpty && 54!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegativeInfinity.cs (2)
30!x.IsEmpty && 41!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsNormal.cs (2)
30!x.IsEmpty && 41!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsOddInteger.cs (2)
30!x.IsEmpty && 41!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositive.cs (2)
30!x.IsEmpty && 41!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositiveInfinity.cs (2)
30!x.IsEmpty && 41!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsPow2.cs (2)
30!x.IsEmpty && 41!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsRealNumber.cs (2)
43!x.IsEmpty && 54!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsSubnormal.cs (2)
30!x.IsEmpty && 41!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsZero.cs (2)
30!x.IsEmpty && 41!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (1)
130if (x.IsEmpty)
System\Numerics\Tensors\netcore\TensorPrimitives.Product.cs (3)
24if (x.IsEmpty) 56if (x.IsEmpty) 88if (x.IsEmpty)
System\Numerics\Tensors\netcore\TensorPrimitives.Sigmoid.cs (1)
28if (x.IsEmpty)
System\Numerics\Tensors\netcore\TensorPrimitives.SoftMax.cs (1)
27if (x.IsEmpty)
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
22if (x.IsEmpty)
System\Numerics\Tensors\netcore\TensorShape.cs (1)
652if (shape1Lengths.IsEmpty)
System\Numerics\Tensors\TensorPrimitives.Single.cs (6)
198if (x.IsEmpty) 710if (x.IsEmpty) 741if (x.IsEmpty) 772if (x.IsEmpty) 797if (x.IsEmpty) 847if (x.IsEmpty)
System.Private.CoreLib (214)
src\runtime\src\libraries\Common\src\Interop\Linux\os-release\Interop.OSReleaseFile.cs (3)
43if (!prettyName.IsEmpty) 50if (!name.IsEmpty) 52if (!version.IsEmpty)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
96return path.IsEmpty;
src\runtime\src\libraries\Common\src\System\Number.Parsing.Common.cs (2)
85else if (!currSymbol.IsEmpty && (next = MatchChars(p, strEnd, currSymbol)) != null) 255else if (!currSymbol.IsEmpty && (next = MatchChars(p, strEnd, currSymbol)) != null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (1)
538if (!value.IsEmpty && value.Length <= 10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (6)
28if (source.IsEmpty) 331while (!source.IsEmpty); 517while (!source.IsEmpty) 609Debug.Assert(!source.IsEmpty); 622while (!source.IsEmpty) 713Debug.Assert(!source.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (1)
25if (source.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64ValidatorHelper.cs (3)
17if (!base64Text.IsEmpty) 20while (!base64Text.IsEmpty) 43while (!base64Text.IsEmpty && validatable.IsWhiteSpace(base64Text[0]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.D.cs (1)
280if (source.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (2)
103if (!source.IsEmpty) 135if (!source.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
328if (span.IsEmpty && target is null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (2)
97if (span.IsEmpty && target is null) 129if (span.IsEmpty && target is null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (2)
65if (alternate.IsEmpty && other is null) 110if (alternate.IsEmpty && other is null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (2)
248values.IsEmpty ? ReadOnlyCollection<T>.Empty : new ReadOnlyCollection<T>(values.ToArray()); 260if (values.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
2469if (source.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Delegate.cs (1)
46if (!delegates.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (8)
921if (!value.IsEmpty) 927if (value.IsEmpty) 979if (!value.IsEmpty) 985if (value.IsEmpty) 1694if (format.IsEmpty) 1757if (format.IsEmpty) 1816if (format.IsEmpty) 1898Debug.Assert(!format.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (7)
534if (prefix.IsEmpty) 604if (GlobalizationMode.Invariant || prefix.IsEmpty || (options & ValidIndexMaskOffFlags) != 0) 677if (suffix.IsEmpty) 747if (GlobalizationMode.Invariant || suffix.IsEmpty || (options & ValidIndexMaskOffFlags) != 0) 953if (value.IsEmpty) 1061if (value.IsEmpty) 1327if (value.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (10)
108Debug.Assert(!target.IsEmpty); 223Debug.Assert(!target.IsEmpty); 319Debug.Assert(!prefix.IsEmpty); 347Debug.Assert(!prefix.IsEmpty); 429Debug.Assert(!prefix.IsEmpty); 503Debug.Assert(!suffix.IsEmpty); 531Debug.Assert(!suffix.IsEmpty); 614Debug.Assert(!suffix.IsEmpty); 824Debug.Assert(!text.IsEmpty); 840} while (!text.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (8)
52Debug.Assert(!source.IsEmpty); 53Debug.Assert(!value.IsEmpty); 208if (string1.IsEmpty) 213if (string2.IsEmpty) 253Debug.Assert(!lpStringValue.IsEmpty); 313Debug.Assert(!prefix.IsEmpty); 334Debug.Assert(!suffix.IsEmpty); 521Debug.Assert(!text.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Utf8.cs (1)
31if (prefix.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
70if (!extension.IsEmpty && extension.TryCopyTo(buffer.Slice(bufferIndex)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
1054if (format.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
2195if (!monthPostfix.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
3352if (format.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Nls.cs (4)
202if (!eraName.IsEmpty && !abbreviatedEraName.IsEmpty && !englishEraName.IsEmpty && !abbreviatedEnglishEraName.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Icu.cs (3)
17Debug.Assert(!source.IsEmpty); 126Debug.Assert(!source.IsEmpty); 172Debug.Assert(!source.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (3)
18Debug.Assert(!source.IsEmpty); 119Debug.Assert(!source.IsEmpty); 169Debug.Assert(!source.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
218while (!remaining.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
253if (source.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
152Debug.Assert(decimalSeparator.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
697if (input.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
377if (byteBuffer.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (3)
1561if (contents.IsEmpty) 1587while (!contents.IsEmpty) 1591int encoded = encoder.GetBytes(toEncode, bytes.Slice(preambleSize), flush: contents.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (1)
542if (paths.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (1)
115while (!buffer.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
814Debug.Assert(!charBufferSpan.IsEmpty, "ReadBuffer returned > 0 but didn't bump _charLen?");
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (12)
1193return span.IsEmpty ? -1 : 0; 1273return span.IsEmpty ? -1 : 0; 1993return span.IsEmpty ? -1 : 0; 2378while (!span.IsEmpty) 4124if (span.IsEmpty || other.IsEmpty) 4142if (span.IsEmpty || other.IsEmpty) 5144if (separator.IsEmpty) 5201if (separators.IsEmpty && destination.Length > source.Length) 5242if (separators.IsEmpty && destination.Length > source.Length) 5311if (!stringSeparators.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.MinMax.cs (2)
166if (span.IsEmpty) 235if (span.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (2)
725if (trimChars.IsEmpty) 758if (trimChars.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
946while (!tableData.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (12)
318if (value.IsEmpty) 389if (!positiveSign.IsEmpty && value.StartsWith(positiveSign)) 399else if (!negativeSign.IsEmpty && value.StartsWith(negativeSign)) 640if (value.IsEmpty) 1098return !span.IsEmpty && (span[0] == c); 1183if (!symbol.IsEmpty && symbol.Length <= candidate.Length && SpanEqualsOrdinalIgnoreCase(candidate.Slice(0, symbol.Length), symbol)) 1187if (trailing.IsEmpty || allowTrailingInvalid) 1203if (value.IsEmpty) 1231if (!negativeSign.IsEmpty && value.Slice(index).StartsWith(negativeSign)) 1244if (!positiveSign.IsEmpty && value.Slice(index).StartsWith(positiveSign)) 1385if (!negSign.IsEmpty && value.Slice(index).StartsWith(negSign)) 1395else if (!posSign.IsEmpty && value.Slice(index).StartsWith(posSign))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (2)
483if (choices.IsEmpty) 676if (choices.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
410if (IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
329while (!stringToEscape.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
426if (spanAssembly.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\EmptySearchValues.cs (1)
19span.IsEmpty ? -1 : 0;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMapState.cs (1)
35Debug.Assert(!values.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (2)
30if (values.IsEmpty) 80if (values.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickBuilder.cs (1)
24Debug.Assert(!values.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (21)
103return args.IsEmpty ? 415return values.IsEmpty ? 900if (values.IsEmpty) 984if (!separator.IsEmpty) 1014if (!separator.IsEmpty) 1040if (!separator.IsEmpty) 1058return values.IsEmpty ? 1241Debug.Assert(!oldValue.IsEmpty); 1791if (separators.IsEmpty && count > Length) 1961currIndex = sepList[i] + (lengthList.IsEmpty ? defaultLength : lengthList[i]); 2005if (!thisEntry.IsEmpty || ((options & StringSplitOptions.RemoveEmptyEntries) == 0)) 2009currIndex = sepList[i] + (lengthList.IsEmpty ? defaultLength : lengthList[i]); 2024if (!thisEntry.IsEmpty) 2028currIndex = sepList[i] + (lengthList.IsEmpty ? defaultLength : lengthList[i]); 2045if (!thisEntry.IsEmpty || ((options & StringSplitOptions.RemoveEmptyEntries) == 0)) 2424Debug.Assert(!separator.IsEmpty, "Empty separator"); 2427while (!source.IsEmpty) 2452Debug.Assert(!separators.IsEmpty, "Zero separators"); 2754if (trimChars.IsEmpty) 2821if (trimChars.IsEmpty) 2888if (trimChars.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (4)
279if (span.IsEmpty && target is null) 391if (span.IsEmpty && target is null) 457if (span.IsEmpty && target is null) 539if (span.IsEmpty && target is null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (3)
422if (chars.IsEmpty) 710if (bytes.IsEmpty) 804if (!bytes.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (2)
124Debug.Assert(!chars.IsEmpty, "Caller shouldn't invoke this if there's no data to fall back."); 133if (!chars.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (2)
261if (chars.IsEmpty) 326if (chars.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (18)
288if (!chars.IsEmpty) 313Debug.Assert(!chars.IsEmpty, "Caller shouldn't invoke this method with an empty input buffer."); 359if (!chars.IsEmpty) 382} while (!chars.IsEmpty); 562if (!chars.IsEmpty) 589Debug.Assert(!chars.IsEmpty, "Caller shouldn't invoke this method with an empty input buffer."); 648if (!chars.IsEmpty) 665} while (!chars.IsEmpty); 678if (!chars.IsEmpty || fallbackBuffer.Remaining > 0) 888if (!bytes.IsEmpty) 913Debug.Assert(!bytes.IsEmpty, "Caller shouldn't invoke this method with an empty input buffer."); 955if (!bytes.IsEmpty) 978} while (!bytes.IsEmpty); 1167if (bytes.IsEmpty) 1190Debug.Assert(!bytes.IsEmpty, "Caller shouldn't invoke this method with an empty input buffer."); 1247if (!bytes.IsEmpty) 1265} while (!bytes.IsEmpty); 1275if (!bytes.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
688if (!bytes.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (4)
334if (!source.IsEmpty) 427if (source.IsEmpty) 719Debug.Assert(!source.IsEmpty, "Shouldn't reach this for empty inputs."); 854if (input.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\RunePosition.cs (2)
210if (_remaining.IsEmpty) 294if (_remaining.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\SpanRuneEnumerator.cs (1)
29if (_remaining.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (4)
970if (value.IsEmpty || count == 0) 1308if (values.IsEmpty) 1757if (!itemFormatSpan.IsEmpty) 2443Debug.Assert(!replacements.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
479if (buffer.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (5)
57while (!source.IsEmpty) 148while (!source.IsEmpty) 199Debug.Assert(!source.IsEmpty, "Expected 'Done' if source is fully consumed."); 243while (!source.IsEmpty) 286Debug.Assert(!source.IsEmpty, "Expected 'Done' if source is fully consumed.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
659if (bytes.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (1)
202if (!itemFormatSpan.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
6542if (tasks.IsEmpty) 6733if (tasks.IsEmpty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (6)
727if (!daylightSavingsName.IsEmpty) 849if (date.IsEmpty) 932Debug.Assert(!date.IsEmpty); 1026if (!daylightSavingsName.IsEmpty) 1043return !standardName.IsEmpty && !standardOffset.IsEmpty;
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
218if (!assemblyName.IsEmpty && AssemblyNameParser.TryParse(assemblyName, ref parts))
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (3)
34if (trimmedName.IsEmpty) 48if (parsedName is null || !parser._inputString.IsEmpty) // unconsumed input == error 243if (_inputString.IsEmpty)
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (3)
202if (!span.IsEmpty && span[0] == '[') 206if (!trimmed.IsEmpty) 334if (!span.IsEmpty && span[0] == value)
System\CrashInfo.cs (1)
343if (!key.IsEmpty)
System\Runtime\Loader\AssemblyLoadContext.NativeAot.cs (1)
55if (rawAssembly.IsEmpty)
System.Private.DataContractSerialization (2)
_generated\0\RegexGenerator.g.cs (2)
298if (slice.IsEmpty || slice[0] != ',') 334if (slice.IsEmpty || slice[0] != '=')
System.Private.TypeLoader (2)
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8Span.cs (1)
19public bool IsEmpty => _value.IsEmpty;
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
207if (kinds.IsEmpty)
System.Private.Uri (8)
System\DomainNameHelper.cs (1)
182if (hostname.IsEmpty)
System\Uri.cs (4)
1993while (!str.IsEmpty && UriHelper.IsLWS(str[str.Length - 1])) 2497if (!scopeIdSpan.IsEmpty) 3465while (!original.IsEmpty && UriHelper.IsLWS(original[^1])) 4308Debug.Assert(slice.IsEmpty || slice.Overlaps(dest.RawChars));
System\UriHelper.cs (3)
253Debug.Assert(!stringToEscape.IsEmpty && !noEscape.Contains(stringToEscape[0])); 258while (!stringToEscape.IsEmpty) 378while (!chars.IsEmpty)
System.Private.Windows.Core (7)
_generated\130\Windows.Win32.IDispatch.g.cs (1)
103 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\131\Windows.Win32.IDispatchEx.g.cs (1)
86 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\157\Windows.Win32.IPictureDisp.g.cs (1)
87 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\165\Windows.Win32.ITypeInfo.g.cs (1)
368 if (!rgszNames.IsEmpty && !pMemId.IsEmpty && rgszNames.Length != pMemId.Length) throw new ArgumentException();
_generated\253\Windows.Win32.System_Com_ITypeInfo_Extensions.g.cs (1)
95 if (!rgszNames.IsEmpty && !pMemId.IsEmpty && rgszNames.Length != pMemId.Length) throw new ArgumentException();
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
267return bytes.IsEmpty ? string.Empty : encoding.GetString(bytes);
System\SpanReader.cs (1)
77if (_unread.IsEmpty)
System.Private.Xml (15)
_generated\0\RegexGenerator.g.cs (11)
722if (slice.IsEmpty || slice[0] != '-') 911if (slice.IsEmpty || slice[0] != ')') 968if (slice.IsEmpty || slice[0] != '[') 1033if (slice.IsEmpty || slice[0] != ']') 1186if (slice.IsEmpty || slice[0] != ')') 1220if (slice.IsEmpty || slice[0] != ')') 1479if (slice.IsEmpty || slice[0] != ',') 1534if (slice.IsEmpty || slice[0] != '[') 1703if (slice.IsEmpty || slice[0] != '[') 1771if (slice.IsEmpty || slice[0] != ']') 2513if (slice.IsEmpty || slice[0] != ']')
System\Xml\Core\XmlTextEncoder.cs (1)
240if (text.IsEmpty)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
4538if ((element.Form == XmlSchemaForm.Unqualified && choiceNs.IsEmpty) || choiceNs.SequenceEqual(element.Namespace))
System\Xml\XPath\Internal\XPathScanner.cs (1)
331Debug.Assert(!span.IsEmpty);
System\Xml\Xsl\XPath\XPathCompileException.cs (1)
88if (queryString == null || queryString.AsSpan().Trim(' ').IsEmpty)
System.Reflection.Metadata (10)
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
218if (!assemblyName.IsEmpty && AssemblyNameParser.TryParse(assemblyName, ref parts))
System\Reflection\Metadata\BlobBuilder.cs (1)
687if (!remaining.IsEmpty)
System\Reflection\Metadata\TypeNameParser.cs (3)
34if (trimmedName.IsEmpty) 48if (parsedName is null || !parser._inputString.IsEmpty) // unconsumed input == error 243if (_inputString.IsEmpty)
System\Reflection\Metadata\TypeNameParserHelpers.cs (3)
202if (!span.IsEmpty && span[0] == '[') 206if (!trimmed.IsEmpty) 334if (!span.IsEmpty && span[0] == value)
System\Reflection\PortableExecutable\PEBuilder.cs (2)
524if (segment.IsEmpty) 544pendingByte = segment.IsEmpty ? -1 : segment[0];
System.Reflection.MetadataLoadContext (1)
System\Reflection\PathAssemblyResolver.cs (1)
82else if ((candidateWithSamePkt == null && pktFromName.IsEmpty) ||
System.Resources.Extensions (7)
System\Resources\Extensions\TypeNameComparer.cs (7)
88if (simpleName1.IsEmpty && !typeSpan1.IsEmpty || 89simpleName2.IsEmpty && !typeSpan2.IsEmpty) 94if (simpleName1.IsEmpty) 95return (simpleName2.IsEmpty || IsMscorlib(simpleName2)); 96if (simpleName2.IsEmpty)
System.Runtime.Numerics (38)
src\runtime\src\libraries\Common\src\System\Number.Parsing.Common.cs (2)
85else if (!currSymbol.IsEmpty && (next = MatchChars(p, strEnd, currSymbol)) != null) 255else if (!currSymbol.IsEmpty && (next = MatchChars(p, strEnd, currSymbol)) != null)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder_1.cs (2)
174if (text.IsEmpty) 211if (text.IsEmpty)
System\Number.BigInteger.cs (3)
217if (value.IsEmpty) 245while (!value.IsEmpty && leading == signBits) 256if (value.IsEmpty)
System\Numerics\BigInteger.cs (20)
1891bool trivialLeft = leftBits.IsEmpty; 1892bool trivialRight = rightBits.IsEmpty; 1900Debug.Assert(!rightBits.IsEmpty); 1911Debug.Assert(!leftBits.IsEmpty); 1922Debug.Assert(!leftBits.IsEmpty && !rightBits.IsEmpty); 1933Debug.Assert(!leftBits.IsEmpty && !rightBits.IsEmpty); 1960bool trivialLeft = leftBits.IsEmpty; 1961bool trivialRight = rightBits.IsEmpty; 1969Debug.Assert(!rightBits.IsEmpty); 1980Debug.Assert(!leftBits.IsEmpty); 2000Debug.Assert(!leftBits.IsEmpty && !rightBits.IsEmpty); 3037bool trivialLeft = left.IsEmpty; 3038bool trivialRight = right.IsEmpty; 3046Debug.Assert(!right.IsEmpty); 3057Debug.Assert(!left.IsEmpty); 3077Debug.Assert(!left.IsEmpty && !right.IsEmpty);
System\Numerics\BigIntegerCalculator.FastReducer.cs (2)
25Debug.Assert(!modulus.IsEmpty); 73Debug.Assert(!right.IsEmpty);
System\Numerics\BigIntegerCalculator.PowMod.cs (2)
260Debug.Assert(!modulus.IsEmpty); 300Debug.Assert(!modulus.IsEmpty);
System\Numerics\BigIntegerCalculator.SquMul.cs (7)
224Debug.Assert(right.IsEmpty || bits.Length >= left.Length + right.Length); 601Debug.Assert(v0.IsEmpty || v0[^1] != 0); 602Debug.Assert(v2.IsEmpty || v2[^1] != 0); 659!qInf.IsEmpty 691Debug.Assert(!cInf.IsEmpty); 964if (!right.IsEmpty) 1008if (!right.IsEmpty)
System.Security.Cryptography (49)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptEncryptDecrypt.RSA.cs (1)
60if (source.IsEmpty)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
238if (!encoded.IsEmpty)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
283if (!encoded.IsEmpty)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (1)
61Debug.Assert(!integer.IsEmpty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
183if (password.IsEmpty && passwordBytes.Length > 0) 381Debug.Assert(password.Length > 0 || passwordBytes.IsEmpty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (1)
127Debug.Assert(copyFrom == null || pkcs1PrivateKey.IsEmpty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
156if (!password.IsEmpty)
System\Security\Cryptography\Aes.cs (2)
103if (plaintext.IsEmpty) 131if (plaintext.IsEmpty)
System\Security\Cryptography\Base64Transforms.cs (1)
262while (!inputBuffer.IsEmpty && s_whiteSpace.Contains(inputBuffer[0]));
System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs (1)
28if (!iv.IsEmpty)
System\Security\Cryptography\BasicSymmetricCipherLiteNCrypt.cs (1)
119if (!iv.IsEmpty)
System\Security\Cryptography\CngSymmetricAlgorithmCore.cs (2)
171if (!iv.IsEmpty && iv.Length != AsymmetricAlgorithmHelpers.BitsToBytes(_outer.BlockSize)) 176if (mode.UsesIv() && iv.IsEmpty)
System\Security\Cryptography\ConcurrentSafeKmac.cs (2)
70Debug.Assert(!hash.IsEmpty); 99Debug.Assert(!hash.IsEmpty);
System\Security\Cryptography\EccKeyFormatHelper.cs (1)
500if (encodedAttributes.IsEmpty)
System\Security\Cryptography\HashProviderDispenser.Windows.cs (1)
192Debug.Assert(isHmac ? true : key.IsEmpty);
System\Security\Cryptography\HKDF.Windows.cs (1)
180Debug.Assert(salt.IsEmpty);
System\Security\Cryptography\Kmac128.cs (2)
212if (hash.IsEmpty) 250if (hash.IsEmpty)
System\Security\Cryptography\Kmac256.cs (2)
212if (hash.IsEmpty) 250if (hash.IsEmpty)
System\Security\Cryptography\KmacStatic.cs (1)
193if (hash.IsEmpty)
System\Security\Cryptography\KmacXof128.cs (2)
212if (hash.IsEmpty) 250if (hash.IsEmpty)
System\Security\Cryptography\KmacXof256.cs (2)
212if (hash.IsEmpty) 250if (hash.IsEmpty)
System\Security\Cryptography\LiteHash.Windows.cs (5)
70if (!customizationString.IsEmpty) 123if (data.IsEmpty) 232if (data.IsEmpty) 345if (data.IsEmpty) 418if (data.IsEmpty)
System\Security\Cryptography\Pbkdf2Implementation.Windows.cs (1)
49if (password.IsEmpty)
System\Security\Cryptography\PemEncoding.cs (1)
261if (data.IsEmpty)
System\Security\Cryptography\RandomNumberGenerator.cs (3)
181if (choices.IsEmpty) 204if (choices.IsEmpty) 231if (choices.IsEmpty)
System\Security\Cryptography\SP800108HmacCounterKdfImplementationCng.cs (1)
26else if (!key.IsEmpty)
System\Security\Cryptography\UniversalCryptoOneShot.cs (1)
27if (input.IsEmpty && depaddingRequired)
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (1)
273if (!encoded.IsEmpty)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.Import.cs (1)
25Debug.Assert(!rawData.IsEmpty || fileName != null);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
832if (serialNumber.IsEmpty)
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
137if (serialNumber.IsEmpty)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (2)
68if (!data.IsEmpty) 123if (rawData.IsEmpty)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1772if (match.IsEmpty)
System\Security\Cryptography\X509Certificates\X509CertificateLoader.netcore.cs (1)
20if (data.IsEmpty)
System.Security.Cryptography.Pkcs (4)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
238if (!encoded.IsEmpty)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
283if (!encoded.IsEmpty)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
183if (password.IsEmpty && passwordBytes.Length > 0) 381Debug.Assert(password.Length > 0 || passwordBytes.IsEmpty);
System.Security.Cryptography.ProtectedData (2)
System\Security\Cryptography\ProtectedData.cs (2)
335ReadOnlySpan<byte> relevantData = inputData.IsEmpty ? s_nonEmpty : inputData; 341if (!optionalEntropy.IsEmpty)
System.Text.Encodings.Web (10)
System\Text\Encodings\Web\AllowedBmpCodePointsBitmap.cs (1)
75while (!definedCharsBitmapAsLittleEndian.IsEmpty)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (2)
381while (!data.IsEmpty) 392return (data.IsEmpty) ? -1 : dataOriginalLength - data.Length;
System\Text\Encodings\Web\TextEncoder.cs (7)
176} while (!remainingInput.IsEmpty); 335while (!utf8Source.IsEmpty) 457while (!source.IsEmpty) 515Debug.Assert(!value.IsEmpty, "Caller should've special-cased 'no encoding needed'."); 534} while (!value.IsEmpty); 563while (!utf8Text.IsEmpty) 573return (utf8Text.IsEmpty) ? -1 : utf8TextOriginalLength - utf8Text.Length;
System.Text.Json (21)
_generated\0\RegexGenerator.g.cs (1)
130if (!slice.IsEmpty && (((ch = slice[0]) == '+') | (ch == '-')))
System\Text\Json\Document\JsonDocument.Parse.cs (3)
644int length = valueSpan.IsEmpty ? checked((int)valueSequence.Length) : valueSpan.Length; 652if (valueSpan.IsEmpty) 677if (valueSpan.IsEmpty)
System\Text\Json\JsonHelpers.cs (3)
447if (frac.IsEmpty && IndexOfFirstTrailingZero(intg) is >= 0 and int fz) 460if (intg.IsEmpty && frac.IsEmpty)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (4)
2473if (localBuffer.IsEmpty) 2485if (localBuffer.IsEmpty) 2581if (localBuffer.IsEmpty) 2601Debug.Assert(!localBuffer.IsEmpty);
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
576if (path.IsEmpty)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
345} while (!rest.IsEmpty);
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
52if (utf8Source.IsEmpty || IsWhiteSpaceByte(utf8Source[0]) || IsWhiteSpaceByte(utf8Source[^1]))
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (2)
474Debug.Assert(!valueSpan.IsEmpty ^ !valueSequence.IsEmpty); 494return valueSpan.IsEmpty
System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs (1)
89if (!utf8PropertyCacheSpan.IsEmpty)
System\Text\Json\Writer\JsonWriterHelper.cs (1)
158Debug.Assert(!utf8FormattedNumber.IsEmpty);
System\Text\Json\Writer\JsonWriterHelper.Escaping.cs (1)
103if (value.IsEmpty)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (2)
120if (value.IsEmpty) return; 289if (utf8Value.IsEmpty) return;
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\SourceWriter.cs (1)
81if (remainingText.IsEmpty)
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\RegexCaseEquivalences.cs (1)
55return !equivalences.IsEmpty;
System\Text\RegularExpressions\RegexCharClass.cs (1)
282Debug.Assert(!set.IsEmpty);
System\Text\RegularExpressions\RegexParser.cs (1)
175if (input.IsEmpty)
System\Text\RegularExpressions\Symbolic\BitVector.cs (1)
123Debug.Assert(!bitVectors.IsEmpty);
System.Text.RegularExpressions.Generator (3)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCaseEquivalences.cs (1)
55return !equivalences.IsEmpty;
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
282Debug.Assert(!set.IsEmpty);
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (1)
175if (input.IsEmpty)
System.Web.HttpUtility (1)
System\Web\Util\HttpEncoder.cs (1)
319if (value.IsEmpty)
System.Windows.Forms (14)
System\Windows\Forms\ActiveX\DataStreamFromComStream.cs (1)
133if (buffer.IsEmpty)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (2)
760if (!helpString.IsEmpty) 766Debug.Assert(!name.IsEmpty, "No name for VARDESC member, but GetDocumentation returned S_OK!");
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
55if (text.IsEmpty)
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
51if (text.IsEmpty)
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
55if (text.IsEmpty)
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
423if (!logFont.FaceName.IsEmpty)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
38if (text.IsEmpty)
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
106if (logFont.FaceName.IsEmpty)
System\Windows\Forms\Rendering\TextExtensions.cs (2)
58if (text.IsEmpty || foreColor == Color.Transparent) 219if (text.IsEmpty)
System\Windows\Forms\Rendering\TextRenderer.cs (3)
301if (text.IsEmpty || foreColor == Color.Transparent) 517if (text.IsEmpty) 535if (text.IsEmpty)
System.Windows.Forms.Primitives (52)
_generated\107\Windows.Win32.IAccessible.g.cs (1)
93 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\137\Windows.Win32.IFontDisp.g.cs (1)
86 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\142\Windows.Win32.IHTMLCurrentStyle.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\143\Windows.Win32.IHTMLDataTransfer.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\144\Windows.Win32.IHTMLDocument.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\145\Windows.Win32.IHTMLDocument2.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\146\Windows.Win32.IHTMLDocument3.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\147\Windows.Win32.IHTMLDocument4.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\148\Windows.Win32.IHTMLDOMNode.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\149\Windows.Win32.IHTMLElement.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\150\Windows.Win32.IHTMLElement2.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\151\Windows.Win32.IHTMLElement3.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\152\Windows.Win32.IHTMLElementCollection.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\153\Windows.Win32.IHTMLEventObj.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\154\Windows.Win32.IHTMLFiltersCollection.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\155\Windows.Win32.IHTMLFormElement.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\156\Windows.Win32.IHTMLFrameBase.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\157\Windows.Win32.IHTMLFramesCollection2.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\158\Windows.Win32.IHTMLImageElementFactory.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\159\Windows.Win32.IHTMLImgElement.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\160\Windows.Win32.IHTMLLocation.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\161\Windows.Win32.IHTMLMimeTypesCollection.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\162\Windows.Win32.IHTMLOpsProfile.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\163\Windows.Win32.IHTMLOptionElement.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\164\Windows.Win32.IHTMLOptionElementFactory.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\165\Windows.Win32.IHTMLPluginsCollection.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\166\Windows.Win32.IHTMLRect.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\167\Windows.Win32.IHTMLRectCollection.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\168\Windows.Win32.IHTMLRenderStyle.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\169\Windows.Win32.IHTMLRuleStyle.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\170\Windows.Win32.IHTMLScreen.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\171\Windows.Win32.IHTMLSelectionObject.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\172\Windows.Win32.IHTMLStyle.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\173\Windows.Win32.IHTMLStyleSheet.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\174\Windows.Win32.IHTMLStyleSheetRule.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\175\Windows.Win32.IHTMLStyleSheetRulesCollection.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\176\Windows.Win32.IHTMLStyleSheetsCollection.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\177\Windows.Win32.IHTMLWindow2.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\178\Windows.Win32.IHTMLWindow3.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\179\Windows.Win32.IHTMLWindow4.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\216\Windows.Win32.IOmHistory.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\217\Windows.Win32.IOmNavigator.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\252\Windows.Win32.ITextDocument.g.cs (1)
86 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\253\Windows.Win32.ITextFont.g.cs (1)
86 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\254\Windows.Win32.ITextPara.g.cs (1)
86 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\257\Windows.Win32.ITextRange.g.cs (1)
86 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\259\Windows.Win32.ITextSelection.g.cs (1)
86 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\260\Windows.Win32.ITextStoryRanges.g.cs (1)
86 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\280\Windows.Win32.IWebBrowser.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\281\Windows.Win32.IWebBrowser2.g.cs (1)
97 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
_generated\282\Windows.Win32.IWebBrowserApp.g.cs (1)
85 if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException();
System\Windows\Forms\PaddingConverter.cs (1)
29if (text.IsEmpty)
System.Xaml (4)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (1)
54if (fullName.IsEmpty)
System\Xaml\Schema\XamlNamespace.cs (1)
116if (!subscript.IsEmpty)
System\Xaml\XamlSchemaContext.cs (1)
184if (!values[segment].IsEmpty)
System\Xaml\XamlXmlWriter.cs (1)
659if (!subscript.IsEmpty)