699 references to IsEmpty
Aspire.Azure.Npgsql (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
128if (principalName.IsEmpty || !beginning.EndsWith("providers/Microsoft.ManagedIdentity/userAssignedIdentities", StringComparison.OrdinalIgnoreCase))
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
128if (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]))
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.NewShim.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)
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
109if (remaining.IsEmpty)
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
109if (remaining.IsEmpty)
Microsoft.AspNetCore.Components (1)
Routing\UrlValueConstraint.cs (1)
165if (value.IsEmpty)
Microsoft.AspNetCore.Components.Web (1)
Routing\NavLink.cs (1)
152if (uri.IsEmpty)
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)
1782if (name.IsEmpty || name[0] != (byte)':')
Internal\Http2\Http2Stream.cs (1)
415if (pathSegment.IsEmpty || pathSegment[0] != '/')
Internal\Http3\Http3Stream.cs (2)
507if (name.IsEmpty || name[0] != (byte)':') 1177if (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 (3)
src\Shared\SegmentWriteStream.cs (1)
135while (!buffer.IsEmpty)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
21if (span.IsEmpty) 70if (span.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.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
109if (remaining.IsEmpty)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
109if (remaining.IsEmpty)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
109if (remaining.IsEmpty)
Microsoft.CodeAnalysis.CSharp (3)
Lowering\ExtensionMethodBodyRewriter.cs (1)
61if (!rewrittenParameters.IsEmpty)
Parser\LanguageParser_InterpolatedString.cs (2)
159if (!needsDedentation || indentationWhitespace.IsEmpty) 281if (needsDedentation && !indentationWhitespace.IsEmpty)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
109if (remaining.IsEmpty)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
109if (remaining.IsEmpty)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
109if (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)
500long mapRowIndex = mapIndicesIntSpan.IsEmpty ? mapIndicesLongSpan[spanIndex] : mapIndicesIntSpan[spanIndex];
Microsoft.Extensions.AI.Abstractions (6)
Contents\DataUriParser.cs (2)
64if (!span.IsEmpty && !IsValidMediaType(span, ref mediaType)) 143if (value.IsEmpty)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
553if (path.IsEmpty)
Utilities\AIJsonUtilities.Schema.Create.cs (3)
265string? localDescription = ctx.Path.IsEmpty && description is not null 312if (ctx.Path.IsEmpty && hasDefaultValue) 324if (ctx.Path.IsEmpty && inferenceOptions.IncludeSchemaKeyword)
Microsoft.Extensions.AI.OpenAI (5)
src\Shared\ServerSentEvents\Helpers.cs (2)
47if (value.IsEmpty) 60if (value.IsEmpty)
src\Shared\ServerSentEvents\SseParser_1.cs (3)
337if (line.IsEmpty) 369if (!fieldValue.IsEmpty && fieldValue[0] == (byte)' ') 393if (!remainder.IsEmpty &&
Microsoft.Extensions.Caching.Hybrid.Tests (1)
SerializerTests.cs (1)
278if (!expectedBytes.IsEmpty && !expectedBytes.SequenceEqual(actual))
Microsoft.Extensions.Compliance.Abstractions (2)
Redaction\RedactionStringBuilderExtensions.cs (1)
51if (value.IsEmpty)
Redaction\Redactor.cs (1)
30if (source.IsEmpty)
Microsoft.Extensions.Compliance.Redaction (1)
HmacRedactor.cs (1)
55if (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.Diagnostics.ResourceMonitoring (9)
Linux\LinuxUtilizationParserCgroupV1.cs (4)
314if (stats.IsEmpty) 415if (quotaBuffer.IsEmpty || (quotaBuffer.Length == 2 && quotaBuffer[0] == '-' && quotaBuffer[1] == '1')) 433if (periodBuffer.IsEmpty || (periodBuffer.Length == 2 && periodBuffer[0] == '-' && periodBuffer[1] == '1')) 471if (cpuPodWeightBuffer.IsEmpty || (cpuPodWeightBuffer.Length == 2 && cpuPodWeightBuffer[0] == '-' && cpuPodWeightBuffer[1] == '1'))
Linux\LinuxUtilizationParserCgroupV2.cs (5)
121if (fileContent.IsEmpty) 459if (stats.IsEmpty) 633if (quotaBuffer.IsEmpty || (quotaBuffer.Length == 2 && quotaBuffer[0] == '-' && quotaBuffer[1] == '1')) 674if (content.IsEmpty) 766if (cpuPodWeightBuffer.IsEmpty || (cpuPodWeightBuffer.Length == 2 && cpuPodWeightBuffer[0] == '-' && cpuPodWeightBuffer[1] == '1'))
Microsoft.Extensions.Http.Diagnostics (7)
Logging\Internal\HttpHeadersRedactor.cs (7)
53if (!currentItem.IsEmpty) 64if (!firstItem.IsEmpty) 78if (!currentItem.IsEmpty) 88if (!currentItem.IsEmpty) 112if (!firstItem.IsEmpty) 122if (!currentItem.IsEmpty) 137if (!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 (62)
Model\BPETokenizer.cs (5)
433if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 492if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 559if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 640if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 692if (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)
144if (text.IsEmpty)
PreTokenizer\RegexPreTokenizer.cs (1)
98if (text.IsEmpty)
PreTokenizer\RobertaPreTokenizer.cs (1)
42if (text.IsEmpty)
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)
173if (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)
12253return 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)
1855if ((culture != null) && !zoomString.IsEmpty)
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
109if (remaining.IsEmpty)
Shared (6)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
553if (path.IsEmpty)
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)
34Debug.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.Diagnostics.DiagnosticSource (4)
System\Diagnostics\W3CPropagator.cs (4)
251if (keySpan.IsEmpty || IsInvalidBaggageKey(keySpan)) 432private static bool IsInvalidTraceStateKey(ReadOnlySpan<char> key) => key.IsEmpty || (key[0] < 'a' || key[0] > 'z') || key.ContainsAnyExcept(s_validTraceStateChars); 437private static bool IsInvalidTraceStateValue(ReadOnlySpan<char> value) => value.IsEmpty || value.ContainsAnyExcept(s_validTraceStateValueChars); 510if (key.IsEmpty || IsInvalidBaggageKey(key))
System.Drawing.Common (3)
System\Drawing\Graphics.cs (3)
1738if (s.IsEmpty) 1793if (text.IsEmpty) 1951if (text.IsEmpty)
System.Formats.Asn1 (26)
System\Formats\Asn1\Asn1Tag.cs (1)
163if (source.IsEmpty)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (6)
37if (str.IsEmpty) 54if (chars.IsEmpty) 256if (chars.IsEmpty) 284if (bytes.IsEmpty) 323if (chars.IsEmpty) 358if (bytes.IsEmpty)
System\Formats\Asn1\AsnDecoder.BitString.cs (1)
473while (!cur.IsEmpty)
System\Formats\Asn1\AsnDecoder.cs (3)
331if (source.IsEmpty) 577while (!cur.IsEmpty) 678if (smaller.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)
145if (!encodedValue.IsEmpty)
System.Formats.Tar (5)
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)
1196dirName = dirName.IsEmpty ? "." : dirName; 1199fileName = fileName.IsEmpty ? "." : fileName;
System\Formats\Tar\TarHelpers.cs (1)
276return buffer.IsEmpty ? string.Empty : encoding.GetString(buffer);
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 (8)
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
96return path.IsEmpty;
System\IO\FileSystemWatcher.cs (4)
414OnRenamed(new RenamedEventArgs(action, _directory, name.IsEmpty ? null : name.ToString(), oldName.IsEmpty ? null : oldName.ToString())); 441if (handler != null && MatchPattern(name.IsEmpty ? _directory : name)) 443InvokeOn(new FileSystemEventArgs(changeType, _directory, name.IsEmpty ? null : name.ToString()), handler);
System\IO\FileSystemWatcher.Linux.cs (3)
610if (expandedName.IsEmpty) 624if (!previousEventName.IsEmpty && ((mask & (uint)Interop.Sys.NotifyEvents.IN_MOVED_TO) == 0 || previousEventCookie != nextEvent.cookie)) 737if (!previousEventName.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.Memory.Data (1)
System\BinaryData.cs (1)
423if (span.IsEmpty)
System.Net.HttpListener (2)
System\Net\Managed\HttpListenerRequest.Managed.cs (2)
144if (_version > HttpVersion.Version10 && host.IsEmpty) 158if (host.IsEmpty)
System.Net.Mail (1)
System\Net\Mime\SmtpDateTime.cs (1)
282if (timeZoneSpan.IsEmpty)
System.Net.ServerSentEvents (5)
System\Net\ServerSentEvents\Helpers.cs (2)
30if (value.IsEmpty) 43if (value.IsEmpty)
System\Net\ServerSentEvents\SseParser_1.cs (3)
320if (line.IsEmpty) 352if (!fieldValue.IsEmpty && fieldValue[0] == (byte)' ') 376if (!remainder.IsEmpty &&
System.Net.WebClient (1)
src\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (1)
43while (!buffer.IsEmpty)
System.Numerics.Tensors (60)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (1)
96Debug.Assert(!x.IsEmpty);
System\Numerics\Tensors\netcore\Tensor.cs (3)
1364if (!dimensions.IsEmpty && dimensions.Length != tensor.Lengths.Length) 1372if (dimensions.IsEmpty) 1815if (ranges.IsEmpty)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
2621linearOffset = 0 - (!strides.IsEmpty ? strides[^1] : 0);
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
23if (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)
47!x.IsEmpty && 58!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsComplexNumber.cs (2)
47!x.IsEmpty && 58!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsEvenInteger.cs (2)
35!x.IsEmpty && 46!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsFinite.cs (2)
47!x.IsEmpty && 58!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsImaginaryNumber.cs (2)
47!x.IsEmpty && 58!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsInfinity.cs (2)
34!x.IsEmpty && 45!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsInteger.cs (2)
46!x.IsEmpty && 57!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsNaN.cs (2)
47!x.IsEmpty && 58!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegative.cs (2)
46!x.IsEmpty && 57!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegativeInfinity.cs (2)
34!x.IsEmpty && 45!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsNormal.cs (2)
33!x.IsEmpty && 44!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsOddInteger.cs (2)
35!x.IsEmpty && 46!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositive.cs (2)
33!x.IsEmpty && 44!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositiveInfinity.cs (2)
34!x.IsEmpty && 45!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsPow2.cs (2)
33!x.IsEmpty && 44!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsRealNumber.cs (2)
47!x.IsEmpty && 58!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsSubnormal.cs (2)
34!x.IsEmpty && 45!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.IsZero.cs (2)
33!x.IsEmpty && 44!x.IsEmpty &&
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (1)
399if (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)
23if (x.IsEmpty)
System\Numerics\Tensors\netcore\TensorShape.cs (1)
657if (shape1Lengths.IsEmpty)
System\Numerics\Tensors\TensorPrimitives.Single.cs (6)
201if (x.IsEmpty) 713if (x.IsEmpty) 744if (x.IsEmpty) 775if (x.IsEmpty) 800if (x.IsEmpty) 850if (x.IsEmpty)
System.Private.CoreLib (198)
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)
530if (!value.IsEmpty && value.Length <= 10)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (3)
22if (source.IsEmpty) 311while (!source.IsEmpty); 456while (!source.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (1)
21if (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\Base64Url\Base64UrlDecoder.cs (1)
213while (!source.IsEmpty)
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\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) 1693if (format.IsEmpty) 1756if (format.IsEmpty) 1815if (format.IsEmpty) 1897Debug.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)
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\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (8)
51Debug.Assert(!source.IsEmpty); 52Debug.Assert(!value.IsEmpty); 220if (string1.IsEmpty) 225if (string2.IsEmpty) 265Debug.Assert(!lpStringValue.IsEmpty); 325Debug.Assert(!prefix.IsEmpty); 346Debug.Assert(!suffix.IsEmpty); 570Debug.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)
2201if (!monthPostfix.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
3296if (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)
230if (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)
1513if (contents.IsEmpty) 1539while (!contents.IsEmpty) 1543int 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)
102while (!buffer.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
811Debug.Assert(!charBufferSpan.IsEmpty, "ReadBuffer returned > 0 but didn't bump _charLen?");
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (11)
1189return span.IsEmpty ? -1 : 0; 1269return span.IsEmpty ? -1 : 0; 2350while (!span.IsEmpty) 4092if (span.IsEmpty || other.IsEmpty) 4110if (span.IsEmpty || other.IsEmpty) 5093if (separator.IsEmpty) 5150if (separators.IsEmpty && destination.Length > source.Length) 5191if (separators.IsEmpty && destination.Length > source.Length) 5260if (!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)
240if (value.IsEmpty) 311if (!positiveSign.IsEmpty && value.StartsWith(positiveSign)) 321else if (!negativeSign.IsEmpty && value.StartsWith(negativeSign)) 561if (value.IsEmpty) 890return !span.IsEmpty && (span[0] == c);
src\libraries\System.Private.CoreLib\src\System\Random.cs (2)
195if (choices.IsEmpty) 390if (choices.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)
386if (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 ? 881if (values.IsEmpty) 965if (!separator.IsEmpty) 995if (!separator.IsEmpty) 1021if (!separator.IsEmpty) 1039return values.IsEmpty ? 1222Debug.Assert(!oldValue.IsEmpty); 1710if (separators.IsEmpty && count > Length) 1877currIndex = sepList[i] + (lengthList.IsEmpty ? defaultLength : lengthList[i]); 1921if (!thisEntry.IsEmpty || ((options & StringSplitOptions.RemoveEmptyEntries) == 0)) 1925currIndex = sepList[i] + (lengthList.IsEmpty ? defaultLength : lengthList[i]); 1940if (!thisEntry.IsEmpty) 1944currIndex = sepList[i] + (lengthList.IsEmpty ? defaultLength : lengthList[i]); 1961if (!thisEntry.IsEmpty || ((options & StringSplitOptions.RemoveEmptyEntries) == 0)) 2150Debug.Assert(!separator.IsEmpty, "Empty separator"); 2153while (!source.IsEmpty) 2178Debug.Assert(!separators.IsEmpty, "Zero separators"); 2371if (trimChars.IsEmpty) 2412if (trimChars.IsEmpty) 2453if (trimChars.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (4)
281if (span.IsEmpty && target is null) 393if (span.IsEmpty && target is null) 459if (span.IsEmpty && target is null) 541if (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)
325if (!source.IsEmpty) 418if (source.IsEmpty) 710Debug.Assert(!source.IsEmpty, "Shouldn't reach this for empty inputs."); 822if (input.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)
945if (value.IsEmpty || count == 0) 1269if (values.IsEmpty) 1707if (!itemFormatSpan.IsEmpty) 2359Debug.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)
6358if (tasks.IsEmpty) 6549if (tasks.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (6)
720if (!daylightSavingsName.IsEmpty) 842if (date.IsEmpty) 925Debug.Assert(!date.IsEmpty); 1019if (!daylightSavingsName.IsEmpty) 1036return !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)
210if (!span.IsEmpty && span[0] == '[') 214if (!trimmed.IsEmpty) 342if (!span.IsEmpty && span[0] == value)
src\System\RuntimeType.CoreCLR.cs (1)
2842if (firstCandidate.GetParametersAsSpan().IsEmpty)
System.Private.Uri (4)
System\DomainNameHelper.cs (1)
182if (hostname.IsEmpty)
System\Uri.cs (1)
2524if (!scopeIdSpan.IsEmpty)
System\UriHelper.cs (2)
254Debug.Assert(!stringToEscape.IsEmpty && !noEscape.Contains(stringToEscape[0])); 259while (!stringToEscape.IsEmpty)
System.Private.Windows.Core (1)
System\SpanReader.cs (1)
81if (_unread.IsEmpty)
System.Private.Xml (4)
System\Xml\Core\XmlTextEncoder.cs (1)
240if (text.IsEmpty)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
4471if ((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)
210if (!span.IsEmpty && span[0] == '[') 214if (!trimmed.IsEmpty) 342if (!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 (34)
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)
System\Number.BigInteger.cs (3)
170if (value.IsEmpty) 197while (!value.IsEmpty && leading == signBits) 206if (value.IsEmpty)
System\Numerics\BigInteger.cs (25)
1673bool trivialLeft = leftBits.IsEmpty; 1674bool trivialRight = rightBits.IsEmpty; 1683Debug.Assert(!rightBits.IsEmpty); 1695Debug.Assert(!leftBits.IsEmpty); 1707Debug.Assert(!leftBits.IsEmpty && !rightBits.IsEmpty); 1719Debug.Assert(!leftBits.IsEmpty && !rightBits.IsEmpty); 1751bool trivialLeft = leftBits.IsEmpty; 1752bool trivialRight = rightBits.IsEmpty; 1761Debug.Assert(!rightBits.IsEmpty); 1773Debug.Assert(!leftBits.IsEmpty); 1795Debug.Assert(!leftBits.IsEmpty && !rightBits.IsEmpty); 2726bool trivialLeft = left.IsEmpty; 2727bool trivialRight = right.IsEmpty; 2736Debug.Assert(!right.IsEmpty); 2748Debug.Assert(!left.IsEmpty); 2770Debug.Assert(!left.IsEmpty && !right.IsEmpty); 2783Debug.Assert(!left.IsEmpty && !right.IsEmpty); 3273if (bits.IsEmpty) 3428if (bits.IsEmpty) 5304if (bits.IsEmpty)
System\Numerics\BigIntegerCalculator.FastReducer.cs (2)
25Debug.Assert(!modulus.IsEmpty); 70Debug.Assert(!right.IsEmpty);
System\Numerics\BigIntegerCalculator.PowMod.cs (2)
211Debug.Assert(!modulus.IsEmpty); 260Debug.Assert(!modulus.IsEmpty);
System.Security.Cryptography.Pkcs (4)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (2)
22internal bool HasData => !_span.IsEmpty; 26if (!_span.IsEmpty)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
155if (password.IsEmpty && passwordBytes.Length > 0) 353Debug.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 (20)
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)
506if (frac.IsEmpty && IndexOfFirstTrailingZero(intg) is >= 0 and int fz) 519if (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)
158Debug.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)
409Debug.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)
409Debug.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)
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)
109if (remaining.IsEmpty)