Implemented interface members:
property
Count
System.Collections.Generic.IReadOnlyCollection<T>.Count
property
Count
System.Collections.ICollection.Count
35 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)
88if (_unacknowledgedRenderBatches.Count >= _options.MaxBufferedUnacknowledgedRenderBatches)
Microsoft.AspNetCore.ConcurrencyLimiter (1)
QueuePolicies\BasePolicy.cs (1)
17public int TotalRequests => _leases.Count;
Microsoft.AspNetCore.OutputCaching (1)
RecyclableReadOnlySequenceSegment.cs (1)
51if (s_Spares.Count < TARGET_MAX) // not precise, due to not wanting lock
Microsoft.Build (1)
BackEnd\Components\Logging\LoggingService.cs (1)
1267while (_eventQueue.Count >= _queueCapacity)
Microsoft.Build.Engine.UnitTests (4)
ProjectCache\ProjectCacheTests.cs (4)
783instanceMockCache.Requests.Count.ShouldBe(graph.ProjectNodes.Count); 903mockCache.Requests.Count.ShouldBe(1); 1008mockCache.Requests.Count.ShouldBe(2); 1545cache.QueryStartStops.Count.ShouldBe(graph.ProjectNodes.Count * 2);
Microsoft.CodeAnalysis (2)
Diagnostic\DiagnosticBag.cs (2)
268internal int Count => _lazyBag?.Count ?? 0; 375return "Count = " + (_lazyBag?.Count ?? 0);
Microsoft.CodeAnalysis.Features (4)
AddImport\AbstractAddImportFeatureService.cs (2)
221if (allSymbolReferences.Count >= maxResults) 361if (allSymbolReferences.Count >= maxResults)
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (2)
139isAttributeSearch, result, weight: allReferences.Count, 166result.ContainingNamespaceNames.ToReadOnlyList(), weight: allReferences.Count),
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Utilities\TestProjectFixture.cs (1)
65while (_disposables.Count > 0)
Microsoft.Extensions.Http (2)
DefaultHttpClientFactory.cs (2)
269int initialCount = _expiredHandlers.Count; 302Log.CleanupCycleEnd(_logger, stopwatch.GetElapsedTime(), disposedCount, _expiredHandlers.Count);
Microsoft.Extensions.Telemetry (1)
Buffering\GlobalBuffer.cs (1)
130numItemsToEmit = tempBuffer.Count;
System.Private.CoreLib (8)
src\libraries\Common\src\System\Collections\Concurrent\MultiProducerMultiConsumerQueue.cs (2)
29int IProducerConsumerQueue<T>.Count => Count; 33int IProducerConsumerQueue<T>.GetCountSafe(object syncObj) => Count;
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\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (4)
898long count = (long)highPriorityWorkItems.Count + workItems.Count; 902count += lowPriorityWorkItems.Count; 908count += _assignableWorkItemQueues[i].Count;
System.Threading.Channels (5)
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)
61public override int Count => _parent._items.Count; 317private int ItemsCountForDebugger => _parent._items.Count; 352private int ItemsCountForDebugger => _items.Count;
System.Threading.Tasks.Dataflow (2)
src\libraries\Common\src\System\Collections\Concurrent\MultiProducerMultiConsumerQueue.cs (2)
29int IProducerConsumerQueue<T>.Count => Count; 33int IProducerConsumerQueue<T>.GetCountSafe(object syncObj) => Count;