12 references to Count
Aspire.Dashboard (1)
Model\ResourceOutgoingPeerResolver.cs (1)
159if (s.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)
1425if (lengths.Count(-1) > 1) 1497if (lengths.Count(-1) > 1) 1574if (lengths.Count(-1) > 1)
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
5367Count((ReadOnlySpan<T>)span, value); 5516return 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)
35newLines += data.Count(JsonConstants.LineFeed);
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
202int pipeCount = value.AsSpan().Count('|');