15 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.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;
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)
1337if (lengths.Count(-1) > 1) 1409if (lengths.Count(-1) > 1) 1486if (lengths.Count(-1) > 1)
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
5418Count((ReadOnlySpan<T>)span, value); 5567return Count(span, value[0]);
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)
211int 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('|');