19 references to Count
Aspire.Dashboard (2)
Model\Markdown\MarkdownHelpers.cs (1)
173if (literal.Content.AsSpan().Count('`') == 1 && !literal.IsFirstCharacterEscaped)
Model\ResourceOutgoingPeerResolver.cs (1)
237if (s.AsSpan().Count(',') == 1)
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Http\Routing\src\PathTokenizer.cs (1)
56_count = _path.AsSpan(0, _path.Length - 1).Count('/');
Microsoft.AspNetCore.Routing (1)
PathTokenizer.cs (1)
56_count = _path.AsSpan(0, _path.Length - 1).Count('/');
Microsoft.Build.Utilities.Core (1)
CommandLineBuilder.cs (1)
263int literalQuotes = unquotedTextToAppend.AsSpan().Count('"');
Microsoft.Extensions.Identity.Stores (1)
UserStoreBase.cs (1)
924return mergedCodes.AsSpan().Count(';') + 1;
Microsoft.Net.Http.Headers (2)
HeaderUtilities.cs (2)
694var backSlashCount = inputSpan.Count('\\') + inputSpan.Count('"');
PresentationCore (1)
System\Windows\TextDecorationCollectionConverter.cs (1)
91TextDecorationCollection textDecorations = new(1 + decorationsSpan.Count(','));
PresentationFramework (1)
Microsoft\Win32\FileDialog.cs (1)
323int formatsCount = updatedFilter.AsSpan().Count('|');
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\Tensor.cs (3)
1392if (lengths.Count(-1) > 1) 1464if (lengths.Count(-1) > 1) 1541if (lengths.Count(-1) > 1)
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
5418Count((ReadOnlySpan<T>)span, value); 5567return Count(span, value[0]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
119string[] strings = buckets[bucketIndex] = new string[bucketIndexes.Count(bucketIndex)];
System.Reflection.Metadata (1)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
210int numberOfSegments = fullName.AsSpan().Count('.');
System.Text.Json (1)
System\Text\Json\Reader\JsonReaderHelper.cs (1)
106newLines += data.Count(JsonConstants.LineFeed);
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
202int pipeCount = value.AsSpan().Count('|');