Implemented interface members:
property
Count
System.Collections.Generic.IReadOnlyCollection<T>.Count
property
Count
System.Collections.ICollection.Count
44 references to Count
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
469if (s_freeStringBuilders.Count <= maxPooledStringBuilders)
Infrastructure.Common (1)
xunit\WcfTestCase.cs (1)
70if (runsummary.Failed > 0 && events.Count > 0)
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteRenderer.cs (1)
89if (_unacknowledgedRenderBatches.Count >= _options.MaxBufferedUnacknowledgedRenderBatches)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Buffering\IncomingRequestLogBuffer.cs (1)
111numItemsToEmit = tempBuffer.Count;
Microsoft.AspNetCore.OutputCaching (1)
RecyclableReadOnlySequenceSegment.cs (1)
51if (s_Spares.Count < TARGET_MAX) // not precise, due to not wanting lock
Microsoft.AspNetCore.Server.HttpSys (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (2)
182var currentCount = (ulong)_blocks.Count; 254public int BlockCount() => _blocks.Count;
Microsoft.AspNetCore.Server.IIS (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (2)
182var currentCount = (ulong)_blocks.Count; 254public int BlockCount() => _blocks.Count;
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (2)
182var currentCount = (ulong)_blocks.Count; 254public int BlockCount() => _blocks.Count;
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (2)
182var currentCount = (ulong)_blocks.Count; 254public int BlockCount() => _blocks.Count;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (2)
182var currentCount = (ulong)_blocks.Count; 254public int BlockCount() => _blocks.Count;
Microsoft.Build (2)
BackEnd\Components\Logging\LoggingService.cs (2)
528public int EventQueueCount => _eventQueue?.Count ?? 0; 1372while (eventQueue.Count >= _queueCapacity)
Microsoft.CodeAnalysis (2)
Diagnostic\DiagnosticBag.cs (2)
269internal int Count => _lazyBag?.Count ?? 0; 376return "Count = " + (_lazyBag?.Count ?? 0);
Microsoft.CodeAnalysis.Features (4)
AddImport\AbstractAddImportFeatureService.cs (2)
223if (allSymbolReferences.Count >= maxResults) 363if (allSymbolReferences.Count >= maxResults)
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (2)
146isAttributeSearch, result, weight: allReferences.Count, 176result.ContainingNamespaceNames.ToReadOnlyList(), weight: allReferences.Count),
Microsoft.Extensions.Http (2)
DefaultHttpClientFactory.cs (2)
269int initialCount = _expiredHandlers.Count; 302Log.CleanupCycleEnd(_logger, stopwatch.GetElapsedTime(), disposedCount, _expiredHandlers.Count);
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
513var processCrashedWhenRunningTests = _testSequence.Count > _testEndCount;
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
414if (_pool.Count < MaxEventPoolCount)
System.Private.CoreLib (7)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\MultiProducerMultiConsumerQueue.cs (2)
29int IProducerConsumerQueue<T>.Count => Count; 33int IProducerConsumerQueue<T>.GetCountSafe(object syncObj) => Count;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (2)
209/// rather than retrieving the number of items from the <see cref="Count"/> property and comparing it 253/// property is recommended rather than retrieving the number of items from the <see cref="Count"/>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (3)
862long count = (long)highPriorityWorkItems.Count + workItems.Count; 872count += _assignableWorkItemQueues[i].Count;
System.ServiceModel.Primitives (1)
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
366if (s_freeStringBuilders.Count <= MaxPooledStringBuilders)
System.Threading.Channels (5)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\MultiProducerMultiConsumerQueue.cs (2)
29int IProducerConsumerQueue<T>.Count => Count; 33int IProducerConsumerQueue<T>.GetCountSafe(object syncObj) => Count;
System\Threading\Channels\UnboundedChannel.cs (3)
66public override int Count => _parent._items.Count; 303private int ItemsCountForDebugger => _parent._items.Count; 369private int ItemsCountForDebugger => _items.Count;
System.Threading.Tasks.Dataflow (2)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\MultiProducerMultiConsumerQueue.cs (2)
29int IProducerConsumerQueue<T>.Count => Count; 33int IProducerConsumerQueue<T>.GetCountSafe(object syncObj) => Count;
System.Transactions.Local (2)
System\Transactions\DtcProxyShim\DtcProxyShimFactory.cs (2)
373if (_cachedTransmitters.Count < s_maxCachedInterfaces) 397if (_cachedReceivers.Count < s_maxCachedInterfaces)