918 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)
135if (principalName.IsEmpty || !beginning.EndsWith("providers/Microsoft.ManagedIdentity/userAssignedIdentities", StringComparison.OrdinalIgnoreCase))
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
135if (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]))
dotnet-dev-certs (5)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\TextEncodingKind.cs (1)
94=> !encoding.Preamble.IsEmpty;
http2cat (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
IIS.FunctionalTests (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
IIS.LongTests (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
IIS.NewHandler.FunctionalTests (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
IIS.ShadowCopy.Tests (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
IISExpress.FunctionalTests (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
illink (2)
ILLink.RoslynAnalyzer (7)
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
218if (!assemblyName.IsEmpty && AssemblyNameParser.TryParse(assemblyName, ref parts))
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\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)
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)
Microsoft.AspNetCore.Components (1)
Routing\UrlValueConstraint.cs (1)
165if (value.IsEmpty)
Microsoft.AspNetCore.Components.Web (1)
Routing\NavLink.cs (1)
170if (uri.IsEmpty)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (5)
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)
475HasContent |= buffer.IsEmpty;
Microsoft.AspNetCore.OutputCaching (3)
FormatterBinaryWriter.cs (2)
180if (value.IsEmpty) 205while (!value.IsEmpty);
RecyclableSequenceBuilder.cs (1)
89while (!buffer.IsEmpty)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (2)
EndToEndBenchmarks.cs (2)
81while (!value.IsEmpty) 94while (!value.IsEmpty)
Microsoft.AspNetCore.ResponseCaching (1)
src\Shared\SegmentWriteStream.cs (1)
135while (!buffer.IsEmpty)
Microsoft.AspNetCore.Routing (2)
Matching\HostMatcherPolicy.cs (2)
162if (!hostSpan[hostParts[0]].IsEmpty) 169if (!hostSpan[hostParts[0]].IsEmpty)
Microsoft.AspNetCore.Server.HttpSys (3)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
UrlPrefix.cs (1)
129if (!portString.IsEmpty)
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\Http2\Http2Connection.cs (1)
1786if (name.IsEmpty || name[0] != (byte)':')
Internal\Http2\Http2Stream.cs (1)
414if (pathSegment.IsEmpty || pathSegment[0] != '/')
Internal\Http3\Http3Stream.cs (2)
509if (name.IsEmpty || name[0] != (byte)':') 1178if (pathSegment.IsEmpty || pathSegment[0] != '/')
Internal\Infrastructure\HttpUtilities.cs (1)
87if (span.IsEmpty)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.IsEmpty)
Microsoft.AspNetCore.Shared.Tests (8)
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')
src\Shared\SegmentWriteStream.cs (1)
135while (!buffer.IsEmpty)
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)
237Debug.Assert(stream.FinalBoundaryFound || remainder.IsEmpty, "Un-expected data found on the boundary line: " + remainder.ToString());
Microsoft.Build (8)
Evaluation\Expander.cs (2)
3846ProjectErrorUtilities.VerifyThrowInvalidProject(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 4539if (remainder.IsEmpty || remainder[0] == '.' || remainder[0] == '[')
Logging\OptimizedStringIndenter.cs (1)
115if (input.IsEmpty)
Logging\TerminalLogger\TerminalLogger.cs (1)
1190if (!projectFileName.IsEmpty &&
ProcessExtensions.cs (4)
107if (data.IsEmpty) 119while (!data.IsEmpty && argsFound < maxArgs) 124if (!segment.IsEmpty) 756while (!data.IsEmpty && data[0] == 0)
Microsoft.Build.Engine.UnitTests (1)
Evaluation\Evaluator_Tests.cs (1)
4634Assert.True(actual.IsEmpty);
Microsoft.Build.Utilities.Core (4)
ProcessExtensions.cs (4)
107if (data.IsEmpty) 119while (!data.IsEmpty && argsFound < maxArgs) 124if (!segment.IsEmpty) 756while (!data.IsEmpty && data[0] == 0)
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
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.PerformanceSensitiveAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\TextEncodingKind.cs (1)
94=> !encoding.Preamble.IsEmpty;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
XxHash128Tests.cs (1)
109while (!input.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.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.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 (81)
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)
103if (textToEncode.IsEmpty) 563if (textToEncode.IsEmpty || maxTokenCount <= 0) 952if (textToEncode.IsEmpty || maxTokenCount <= 0) 1223if (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\SentencePieceNormalizer.cs (7)
48if (precompiledCharsMap.IsEmpty) 275Debug.Assert(!input.IsEmpty); 337if (input.IsEmpty) 347while (!input.IsEmpty) 370if (input.IsEmpty) 386while (!input.IsEmpty) 397if (!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.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.VisualStudio.LanguageServices (1)
Workspace\SourceGeneratedFileManager.cs (1)
195if (slice.IsEmpty)
PresentationBuildTasks (2)
MS\Internal\MarkupCompiler\PathInternal.cs (1)
179if (path.IsEmpty)
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)
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\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.cs (1)
93if (items.IsEmpty)
System\Collections\Immutable\ImmutableArray_1.cs (3)
958if (items.IsEmpty) 985if (items.IsEmpty || self.IsEmpty) 1512Debug.Assert(!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)
1175if (this.IsEmpty && addedItems.IsEmpty) 1179if (addedItems.IsEmpty)
System.ComponentModel.TypeConverter (2)
RegexGenerator.g.cs (2)
156if (slice.IsEmpty || slice[0] != '{') 326if (slice.IsEmpty || slice[0] != ',')
System.Data.Common (2)
RegexGenerator.g.cs (2)
156if (slice.IsEmpty || slice[0] != '{') 326if (slice.IsEmpty || slice[0] != ',')
System.Data.Odbc (30)
RegexGenerator.g.cs (30)
348if (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"))) 384if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("\0\0\ufffe\udfff\uffff\uffff\uffff翿"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\u0001\u0002\u0002=>d\u000f"))) 448if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("\0\0\ufffe\udfff\uffff\uffff\uffff翿"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\u0001\u0002\u0002=>d\u000f"))) 620if (slice.IsEmpty || slice[0] != '=') 638if (slice.IsEmpty || slice[0] != '=') 702if (slice.IsEmpty || slice[0] != '"') 727if (slice.IsEmpty || (((ch = slice[0]) == '\0') | (ch == '"'))) 826if (slice.IsEmpty || slice[0] != '"') 846if (slice.IsEmpty || slice[0] != '\'') 871if (slice.IsEmpty || (((ch = slice[0]) == '\0') | (ch == '\''))) 970if (slice.IsEmpty || slice[0] != '\'') 1001if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("㸀\0\u0085\0\0\0\0\0"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\0\u0004\u0001\"#'(d"))) 1033if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("\0\0\ufffe\uffff\uffff\uffff翿"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\u0001\u0002\u0002;<d\u000f"))) 1097if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("\0\0\ufffe\uffff\uffff\uffff翿"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\u0001\u0002\u0002;<d\u000f"))) 1287if (slice.IsEmpty || slice[0] != ';') 1602if (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"))) 1638if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("\0\0\ufffe\udfff\uffff\uffff\uffff翿"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\u0001\u0002\u0002=>d\u000f"))) 1702if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("\0\0\ufffe\udfff\uffff\uffff\uffff翿"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\u0001\u0002\u0002=>d\u000f"))) 1813if (slice.IsEmpty || slice[0] != '=') 1870if (slice.IsEmpty || slice[0] != '{') 1895if (slice.IsEmpty || (((ch = slice[0]) == '\0') | (ch == '}'))) 1994if (slice.IsEmpty || slice[0] != '}') 2024if (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"))) 2056if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("\0\0\ufffe\uffff\uffff\uffff翿"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\u0001\u0002\u0002;<d\u000f"))) 2120if (slice.IsEmpty || ((ch = slice[0]) < 128 ? ("\0\0\ufffe\uffff\uffff\uffff翿"[ch >> 4] & (1 << (ch & 0xF))) == 0 : !RegexRunner.CharInClass((char)ch, "\u0001\u0002\u0002;<d\u000f"))) 2281if (slice.IsEmpty || slice[0] != ';') 2559if (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"))) 2836if (slice.IsEmpty || slice[0] != '{') 2860if (slice.IsEmpty || (((ch = slice[0]) == '\0') | (ch == '}'))) 2941if (slice.IsEmpty || slice[0] != '}')
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\W3CPropagator.cs (4)
252if (keySpan.IsEmpty || IsInvalidBaggageKey(keySpan)) 418key.IsEmpty || 427private static bool IsInvalidTraceStateValue(ReadOnlySpan<char> value) => value.IsEmpty || value.ContainsAnyExcept(s_validTraceStateValueChars); 456if (key.IsEmpty || IsInvalidBaggageKey(key))
System.Diagnostics.Process (1)
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)
234Debug.Assert(!left.IsEmpty && !right.IsEmpty);
System\Formats\Cbor\Writer\CborWriter.cs (1)
146if (!encodedValue.IsEmpty)
System.Formats.Tar (4)
src\libraries\Common\src\System\IO\Archiving.Utils.Unix.cs (1)
23return (path.IsEmpty, appendPathSeparator) switch
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
96return path.IsEmpty;
System\Formats\Tar\TarHeader.Write.cs (2)
1227dirName = dirName.IsEmpty ? "." : dirName; 1230fileName = fileName.IsEmpty ? "." : fileName;
System.IO.Compression (8)
System\IO\Compression\DeflateZLib\DeflateStream.cs (1)
566if (buffer.IsEmpty)
System\IO\Compression\ZipBlocks.cs (1)
114if (!trailingExtraFieldData.IsEmpty)
System\IO\Compression\Zstandard\ZstandardDecoder.cs (3)
209if (data.IsEmpty) 245if (source.IsEmpty) 284if (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 (1)
src\libraries\Common\src\System\IO\Archiving.Utils.Unix.cs (1)
23return (path.IsEmpty, appendPathSeparator) switch
System.IO.FileSystem.Watcher (6)
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
96return path.IsEmpty;
System\IO\FileSystemWatcher.cs (4)
416OnRenamed(new RenamedEventArgs(action, _directory, name.IsEmpty ? null : name.ToString(), oldName.IsEmpty ? null : oldName.ToString())); 443if (handler != null && MatchPattern(name.IsEmpty ? _directory : name)) 445InvokeOn(new FileSystemEventArgs(changeType, _directory, name.IsEmpty ? null : name.ToString()), handler);
System\IO\FileSystemWatcher.Linux.cs (1)
565if (!movedFromDirs.IsEmpty)
System.IO.Hashing (2)
System\IO\Hashing\Adler32.cs (2)
189if (source.IsEmpty) 220Debug.Assert(!source.IsEmpty);
System.IO.Packaging (1)
System\IO\Packaging\ContentType.cs (1)
305while (!parameterAndValue.IsEmpty)
System.Linq (9)
System\Linq\Aggregate.cs (1)
25if (span.IsEmpty)
System\Linq\Average.cs (2)
24if (span.IsEmpty) 96if (span.IsEmpty)
System\Linq\Max.cs (2)
107if (span.IsEmpty) 227if (span.IsEmpty)
System\Linq\MaxMin.cs (1)
35if (span.IsEmpty)
System\Linq\Min.cs (2)
89if (span.IsEmpty) 207if (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\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.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\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (7)
72Debug.Assert(!clientRandom.IsEmpty); 75clientRandom.IsEmpty || 78(clientHandshakeTrafficSecret.IsEmpty && 79serverHandshakeTrafficSecret.IsEmpty && 80clientTrafficSecret0.IsEmpty && 81serverTrafficSecret0.IsEmpty && 82clientEarlyTrafficSecret.IsEmpty))
System.Net.Security (16)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
232Debug.Assert(cipherList.IsEmpty || cipherList[^1] == 0);
src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (7)
72Debug.Assert(!clientRandom.IsEmpty); 75clientRandom.IsEmpty || 78(clientHandshakeTrafficSecret.IsEmpty && 79serverHandshakeTrafficSecret.IsEmpty && 80clientTrafficSecret0.IsEmpty && 81serverTrafficSecret0.IsEmpty && 82clientEarlyTrafficSecret.IsEmpty))
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)
493if (index > 0 && username.IndexOf('\\', index + 1) < 0 && domain.IsEmpty) 502if (!username.Contains('@') && !domain.IsEmpty)
System\Net\Security\TlsFrameHelper.cs (3)
433if (p.IsEmpty) 471if (p.IsEmpty) 696while (!alpnList.IsEmpty)
System.Net.ServerSentEvents (5)
System\Net\ServerSentEvents\Helpers.cs (2)
30if (value.IsEmpty) 43if (value.IsEmpty)
System\Net\ServerSentEvents\SseParser_1.cs (3)
321if (line.IsEmpty) 353if (!fieldValue.IsEmpty && fieldValue[0] == (byte)' ') 377if (!remainder.IsEmpty &&
System.Net.Sockets (3)
System\Net\Sockets\Socket.Unix.cs (2)
213if (!preBuffer.IsEmpty) 235if (!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\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (1)
43while (!buffer.IsEmpty)
System.Numerics.Tensors (63)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (1)
78Debug.Assert(!x.IsEmpty);
System\Numerics\Tensors\netcore\Tensor.cs (6)
1276if (!dimensions.IsEmpty && dimensions.Length != tensor.Lengths.Length) 1284if (dimensions.IsEmpty) 1727if (ranges.IsEmpty) 2069if (!maximumLengths.IsEmpty) 2084if (!maximumLengths.IsEmpty) 2187if (values.IsEmpty)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
2719linearOffset = 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.IndexOfMax.cs (1)
138if (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)
235if (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 (205)
src\libraries\Common\src\Interop\Linux\os-release\Interop.OSReleaseFile.cs (3)
43if (!prettyName.IsEmpty) 50if (!name.IsEmpty) 52if (!version.IsEmpty)
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
96return path.IsEmpty;
src\libraries\Common\src\System\Number.Parsing.Common.cs (2)
77else if (!currSymbol.IsEmpty && (next = MatchChars(p, strEnd, currSymbol)) != null) 247else if (!currSymbol.IsEmpty && (next = MatchChars(p, strEnd, currSymbol)) != null)
src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (1)
536if (!value.IsEmpty && value.Length <= 10)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (6)
25if (source.IsEmpty) 328while (!source.IsEmpty); 473while (!source.IsEmpty) 565Debug.Assert(!source.IsEmpty); 578while (!source.IsEmpty) 669Debug.Assert(!source.IsEmpty);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (1)
23if (source.IsEmpty)
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\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.D.cs (1)
280if (source.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (2)
103if (!source.IsEmpty) 135if (!source.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
305if (span.IsEmpty && target is null)
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\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (2)
65if (alternate.IsEmpty && other is null) 110if (alternate.IsEmpty && other is null)
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\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
2469if (source.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Delegate.cs (1)
42if (!delegates.IsEmpty)
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\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (1)
98if (variable.IsEmpty)
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\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (10)
107Debug.Assert(!target.IsEmpty); 222Debug.Assert(!target.IsEmpty); 318Debug.Assert(!prefix.IsEmpty); 346Debug.Assert(!prefix.IsEmpty); 428Debug.Assert(!prefix.IsEmpty); 502Debug.Assert(!suffix.IsEmpty); 530Debug.Assert(!suffix.IsEmpty); 613Debug.Assert(!suffix.IsEmpty); 823Debug.Assert(!text.IsEmpty); 839} while (!text.IsEmpty);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (8)
51Debug.Assert(!source.IsEmpty); 52Debug.Assert(!value.IsEmpty); 207if (string1.IsEmpty) 212if (string2.IsEmpty) 252Debug.Assert(!lpStringValue.IsEmpty); 312Debug.Assert(!prefix.IsEmpty); 333Debug.Assert(!suffix.IsEmpty); 520Debug.Assert(!text.IsEmpty);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Utf8.cs (1)
31if (prefix.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
70if (!extension.IsEmpty && extension.TryCopyTo(buffer.Slice(bufferIndex)))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
1038if (format.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
2195if (!monthPostfix.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
3352if (format.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Nls.cs (4)
202if (!eraName.IsEmpty && !abbreviatedEraName.IsEmpty && !englishEraName.IsEmpty && !abbreviatedEnglishEraName.IsEmpty)
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\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (3)
18Debug.Assert(!source.IsEmpty); 119Debug.Assert(!source.IsEmpty); 169Debug.Assert(!source.IsEmpty);
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
218while (!remaining.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
226if (source.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
152Debug.Assert(decimalSeparator.IsEmpty);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
697if (input.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
377if (byteBuffer.IsEmpty)
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\libraries\System.Private.CoreLib\src\System\IO\Path.cs (1)
542if (paths.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (1)
106while (!buffer.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
814Debug.Assert(!charBufferSpan.IsEmpty, "ReadBuffer returned > 0 but didn't bump _charLen?");
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\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (2)
725if (trimChars.IsEmpty) 758if (trimChars.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
946while (!tableData.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (5)
274if (value.IsEmpty) 345if (!positiveSign.IsEmpty && value.StartsWith(positiveSign)) 355else if (!negativeSign.IsEmpty && value.StartsWith(negativeSign)) 595if (value.IsEmpty) 924return !span.IsEmpty && (span[0] == c);
src\libraries\System.Private.CoreLib\src\System\Random.cs (2)
195if (choices.IsEmpty) 388if (choices.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
409if (IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
329while (!stringToEscape.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
387if (spanAssembly.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\SearchValues\EmptySearchValues.cs (1)
19span.IsEmpty ? -1 : 0;
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMapState.cs (1)
35Debug.Assert(!values.IsEmpty);
src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (2)
30if (values.IsEmpty) 80if (values.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickBuilder.cs (1)
24Debug.Assert(!values.IsEmpty);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (21)
92return args.IsEmpty ? 394return values.IsEmpty ? 877if (values.IsEmpty) 961if (!separator.IsEmpty) 991if (!separator.IsEmpty) 1017if (!separator.IsEmpty) 1035return values.IsEmpty ? 1218Debug.Assert(!oldValue.IsEmpty); 1764if (separators.IsEmpty && count > Length) 1934currIndex = sepList[i] + (lengthList.IsEmpty ? defaultLength : lengthList[i]); 1978if (!thisEntry.IsEmpty || ((options & StringSplitOptions.RemoveEmptyEntries) == 0)) 1982currIndex = sepList[i] + (lengthList.IsEmpty ? defaultLength : lengthList[i]); 1997if (!thisEntry.IsEmpty) 2001currIndex = sepList[i] + (lengthList.IsEmpty ? defaultLength : lengthList[i]); 2018if (!thisEntry.IsEmpty || ((options & StringSplitOptions.RemoveEmptyEntries) == 0)) 2207Debug.Assert(!separator.IsEmpty, "Empty separator"); 2210while (!source.IsEmpty) 2235Debug.Assert(!separators.IsEmpty, "Zero separators"); 2473if (trimChars.IsEmpty) 2547if (trimChars.IsEmpty) 2621if (trimChars.IsEmpty)
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\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (3)
421if (chars.IsEmpty) 709if (bytes.IsEmpty) 803if (!bytes.IsEmpty)
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\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (2)
260if (chars.IsEmpty) 325if (chars.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (18)
287if (!chars.IsEmpty) 312Debug.Assert(!chars.IsEmpty, "Caller shouldn't invoke this method with an empty input buffer."); 358if (!chars.IsEmpty) 381} while (!chars.IsEmpty); 561if (!chars.IsEmpty) 588Debug.Assert(!chars.IsEmpty, "Caller shouldn't invoke this method with an empty input buffer."); 647if (!chars.IsEmpty) 664} while (!chars.IsEmpty); 677if (!chars.IsEmpty || fallbackBuffer.Remaining > 0) 887if (!bytes.IsEmpty) 912Debug.Assert(!bytes.IsEmpty, "Caller shouldn't invoke this method with an empty input buffer."); 954if (!bytes.IsEmpty) 977} while (!bytes.IsEmpty); 1166if (bytes.IsEmpty) 1189Debug.Assert(!bytes.IsEmpty, "Caller shouldn't invoke this method with an empty input buffer."); 1246if (!bytes.IsEmpty) 1264} while (!bytes.IsEmpty); 1274if (!bytes.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
687if (!bytes.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (4)
332if (!source.IsEmpty) 425if (source.IsEmpty) 717Debug.Assert(!source.IsEmpty, "Shouldn't reach this for empty inputs."); 852if (input.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\RunePosition.cs (2)
210if (_remaining.IsEmpty) 294if (_remaining.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\SpanRuneEnumerator.cs (1)
29if (_remaining.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (4)
955if (value.IsEmpty || count == 0) 1293if (values.IsEmpty) 1742if (!itemFormatSpan.IsEmpty) 2428Debug.Assert(!replacements.IsEmpty);
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
479if (buffer.IsEmpty)
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\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
659if (bytes.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (1)
202if (!itemFormatSpan.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
6441if (tasks.IsEmpty) 6632if (tasks.IsEmpty)
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\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
218if (!assemblyName.IsEmpty && AssemblyNameParser.TryParse(assemblyName, ref parts))
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\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)
src\System\RuntimeType.CoreCLR.cs (1)
2885if (firstCandidate.GetParametersAsSpan().IsEmpty)
System.Private.DataContractSerialization (2)
RegexGenerator.g.cs (2)
156if (slice.IsEmpty || slice[0] != '{') 326if (slice.IsEmpty || slice[0] != ',')
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 (1)
System\SpanReader.cs (1)
79if (_unread.IsEmpty)
System.Private.Xml (6)
RegexGenerator.g.cs (2)
156if (slice.IsEmpty || slice[0] != '{') 326if (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 (8)
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
218if (!assemblyName.IsEmpty && AssemblyNameParser.TryParse(assemblyName, ref parts))
System\Reflection\Metadata\BlobBuilder.cs (1)
681if (!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.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\libraries\Common\src\System\Number.Parsing.Common.cs (2)
77else if (!currSymbol.IsEmpty && (next = MatchChars(p, strEnd, currSymbol)) != null) 247else if (!currSymbol.IsEmpty && (next = MatchChars(p, strEnd, currSymbol)) != null)
src\libraries\Common\src\System\Text\ValueStringBuilder_1.cs (2)
174if (text.IsEmpty) 211if (text.IsEmpty)
System\Number.BigInteger.cs (3)
172if (value.IsEmpty) 199while (!value.IsEmpty && leading == signBits) 208if (value.IsEmpty)
System\Numerics\BigInteger.cs (20)
1698bool trivialLeft = leftBits.IsEmpty; 1699bool trivialRight = rightBits.IsEmpty; 1708Debug.Assert(!rightBits.IsEmpty); 1720Debug.Assert(!leftBits.IsEmpty); 1732Debug.Assert(!leftBits.IsEmpty && !rightBits.IsEmpty); 1744Debug.Assert(!leftBits.IsEmpty && !rightBits.IsEmpty); 1776bool trivialLeft = leftBits.IsEmpty; 1777bool trivialRight = rightBits.IsEmpty; 1786Debug.Assert(!rightBits.IsEmpty); 1798Debug.Assert(!leftBits.IsEmpty); 1820Debug.Assert(!leftBits.IsEmpty && !rightBits.IsEmpty); 2761bool trivialLeft = left.IsEmpty; 2762bool trivialRight = right.IsEmpty; 2771Debug.Assert(!right.IsEmpty); 2783Debug.Assert(!left.IsEmpty); 2806Debug.Assert(!left.IsEmpty && !right.IsEmpty);
System\Numerics\BigIntegerCalculator.FastReducer.cs (2)
25Debug.Assert(!modulus.IsEmpty); 70Debug.Assert(!right.IsEmpty);
System\Numerics\BigIntegerCalculator.PowMod.cs (2)
204Debug.Assert(!modulus.IsEmpty); 253Debug.Assert(!modulus.IsEmpty);
System\Numerics\BigIntegerCalculator.SquMul.cs (7)
221Debug.Assert(right.IsEmpty || bits.Length >= left.Length + right.Length); 617Debug.Assert(v0.IsEmpty || v0[^1] != 0); 618Debug.Assert(v2.IsEmpty || v2[^1] != 0); 675!qInf.IsEmpty 706Debug.Assert(!cInf.IsEmpty); 924if (!right.IsEmpty) 961if (!right.IsEmpty)
System.Security.Cryptography (40)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Kem.cs (1)
103if (seed.IsEmpty)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
209if (!encoded.IsEmpty)
src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (1)
51Debug.Assert(!integer.IsEmpty);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
156if (password.IsEmpty && passwordBytes.Length > 0) 354Debug.Assert(password.Length > 0 || passwordBytes.IsEmpty);
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (1)
164Debug.Assert(copyFrom == null || pkcs1PrivateKey.IsEmpty);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
156if (!password.IsEmpty)
src\libraries\Common\src\System\Text\UrlBase64Encoding.cs (1)
36while (!source.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\ConcurrentSafeKmac.cs (2)
70Debug.Assert(!hash.IsEmpty); 99Debug.Assert(!hash.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.OpenSsl.cs (1)
52if (data.IsEmpty)
System\Security\Cryptography\LiteHash.Unix.cs (3)
55if (data.IsEmpty) 149if (data.IsEmpty) 235if (data.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\UniversalCryptoOneShot.cs (1)
27if (input.IsEmpty && depaddingRequired)
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (1)
231if (!encoded.IsEmpty)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
832if (serialNumber.IsEmpty)
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
137if (serialNumber.IsEmpty)
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (1)
137rdnValue.IsEmpty ||
System\Security\Cryptography\X509Certificates\X509Certificate.cs (2)
68if (!data.IsEmpty) 123if (rawData.IsEmpty)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1778if (match.IsEmpty)
System\Security\Cryptography\X509Certificates\X509CertificateLoader.netcore.cs (1)
20if (data.IsEmpty)
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (1)
122if (data.IsEmpty)
System.Security.Cryptography.Pkcs (3)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
209if (!encoded.IsEmpty)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
156if (password.IsEmpty && passwordBytes.Length > 0) 354Debug.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 (22)
RegexGenerator.g.cs (2)
156if (slice.IsEmpty || slice[0] != '{') 326if (slice.IsEmpty || slice[0] != ',')
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)
480if (frac.IsEmpty && IndexOfFirstTrailingZero(intg) is >= 0 and int fz) 493if (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 (2)
468if (path.IsEmpty) 505while (!span.IsEmpty);
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
345} while (!rest.IsEmpty);
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (2)
453Debug.Assert(!valueSpan.IsEmpty ^ !valueSequence.IsEmpty); 455return valueSpan.IsEmpty
System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs (1)
89if (!utf8PropertyCacheSpan.IsEmpty)
System\Text\Json\Writer\JsonWriterHelper.cs (1)
159Debug.Assert(!utf8FormattedNumber.IsEmpty);
System\Text\Json\Writer\JsonWriterHelper.Escaping.cs (1)
64if (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\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)
279Debug.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\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCaseEquivalences.cs (1)
55return !equivalences.IsEmpty;
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
279Debug.Assert(!set.IsEmpty);
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)
318if (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 (1)
System\Windows\Forms\PaddingConverter.cs (1)
29if (text.IsEmpty)
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenRecordService.cs (1)
547for (ReadOnlySpan<byte> remaining = bytes; !remaining.IsEmpty; remaining = remaining[Math.Min(buffer.Length, remaining.Length)..])
System.Xaml (4)
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)
Templates.Blazor.Tests (5)
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')
Templates.Blazor.WebAssembly.Auth.Tests (5)
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')
Templates.Blazor.WebAssembly.Tests (5)
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')
Templates.Mvc.Tests (5)
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')
Templates.Tests (5)
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')
Test.Utilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\TextEncodingKind.cs (1)
94=> !encoding.Preamble.IsEmpty;
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
108if (remaining.IsEmpty)