Implemented interface members:
property
Count
System.Collections.Generic.ICollection<T>.Count
property
Count
System.Collections.Generic.IReadOnlyCollection<T>.Count
property
Count
System.Collections.ICollection.Count
105 references to Count
Aspire.Dashboard (2)
Components\Pages\ConsoleLogs.razor.cs (2)
617Logger.LogDebug("Successfully created {SubscriptionCount} subscriptions for 'All' view.", _consoleLogsSubscriptions.Count); 754if (_isSubscribedToAll && _consoleLogsSubscriptions.Count == 1)
Aspire.Hosting (2)
Utils\FileSystemService.cs (2)
103_logger?.LogInformation("Skipping cleanup of {Count} temporary files/directories due to ASPIRE_PRESERVE_TEMP_FILES configuration", _allocatedItems.Count); 112_logger?.LogDebug("Cleaning up {Count} remaining temporary files/directories", _allocatedItems.Count);
Aspire.Hosting.RemoteHost (2)
Ats\CapabilityDispatcher.cs (1)
136_logger.LogDebug("Registered {CapabilityCount} capabilities", _capabilities.Count);
Ats\HandleRegistry.cs (1)
158public int Count => _handles.Count;
dotnet (1)
Commands\Test\MTP\Terminal\TestNodeResultsState.cs (1)
25public int Count => _testNodeProgressStates.Count;
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentSet.cs (1)
58public int Count => _dictionary.Count;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
54public int Count => _dictionary.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (1)
309if (map.Count > Threshold)
ILCompiler.Compiler (1)
Compiler\ReachabilityInstrumentationProvider.cs (1)
168KeyValuePair<EcmaModule, ExternSymbolMappedField[]>[] useInfos = new KeyValuePair<EcmaModule, ExternSymbolMappedField[]>[_parent._isTokenUsedStates.Count];
Microsoft.AspNetCore.Components (2)
CascadingValueSource.cs (1)
92if (_subscribers?.Count > 0)
Reflection\ComponentProperties.cs (1)
396if (_referenceEqualityWritersCache.Count < MaxCachedWriterLookups)
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionManager.cs (1)
190var tasks = new List<Task>(_connections.Count);
Microsoft.AspNetCore.SignalR.Core (4)
HubConnectionStore.cs (1)
37public int Count => _connections.Count;
Internal\HubGroupList.cs (3)
45public int Count => _groups.Count; 81return list.Count == Count;
Microsoft.Build (12)
BackEnd\Components\Caching\ConfigCache.cs (2)
229return _configurations.ById.Count > _sweepThreshhold; 244int count = configurations.ById.Count;
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
111return maxNodeCount - _nodeContexts.Count;
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (3)
55return ComponentHost.BuildParameters.MaxNodeCount - _nodeContexts.Count; 85if (_nodeContexts.Count + numberOfNodesToCreate > ComponentHost.BuildParameters.MaxNodeCount) 87return InternalError.Throw<IList<NodeInfo>>($"Exceeded max node count of '{ComponentHost.BuildParameters.MaxNodeCount}', current count is '{_nodeContexts.Count}' ");
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
969Task[] cleanupTasks = new Task[_projectCachePlugins.Count];
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
576else if (_projectsByInstanceId.Count == 1) 586else if (_projectsByEvaluationId.Count == 1)
Evaluation\ConditionEvaluator.cs (1)
149_mOptimisticSize = conditionPools.Count;
Graph\GraphBuilder.cs (1)
698internal int Count => ReferenceItems.Count;
Graph\ParallelWorkSet.cs (1)
49var completedWork = new Dictionary<TKey, TResult>(_inProgressOrCompletedWork.Count);
Microsoft.CodeAnalysis (8)
CodeGen\PrivateImplementationDetails.cs (3)
163_mappedFields.Count + _cachedArrayFields.Count + _cachedArrayFieldsForConstants.Count + (_mvidField != null ? 1 : 0));
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1732if (_lazyControlFlowGraphMap?.Count > 0)
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
96internal int CopyCount => CopyMap.Count;
Emit\CommonPEModuleBuilder.cs (1)
410=> (int)(_methodBodyMap.Count * 1.5);
Emit\DebugDocumentsBuilder.cs (1)
36internal int DebugDocumentCount => _debugDocuments.Count;
InternalUtilities\ConcurrentSet.cs (1)
58public int Count => _dictionary.Count;
Microsoft.CodeAnalysis.Analyzers (4)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
466if (analyzerToDescriptorLocationsMap.Count <= 1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentSet.cs (1)
58public int Count => _dictionary.Count;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
54public int Count => _dictionary.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (1)
309if (map.Count > Threshold)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentSet.cs (1)
58public int Count => _dictionary.Count;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
54public int Count => _dictionary.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (1)
309if (map.Count > Threshold)
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentSet.cs (1)
58public int Count => _dictionary.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (1)
309if (map.Count > Threshold)
Microsoft.CodeAnalysis.CSharp (3)
Emitter\Model\PEModuleBuilder.cs (2)
2258if (_inlineArrayTypes.Count != 0 || _readOnlyListTypes.Any(t => t is not null)) 2260ArrayBuilder<NamedTypeSymbol> builder = ArrayBuilder<NamedTypeSymbol>.GetInstance(_inlineArrayTypes.Count + _readOnlyListTypes.Length);
Symbols\NonMissingAssemblySymbol.cs (1)
215return _emittedNameToTypeMap.Count;
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
53public int Count => _dictionary.Count;
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentSet.cs (1)
58public int Count => _dictionary.Count;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
54public int Count => _dictionary.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (1)
309if (map.Count > Threshold)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NonMissingAssemblySymbol.vb (1)
179Return _emittedNameToTypeMap.Count
Microsoft.CodeAnalysis.Workspaces (5)
Log\AbstractLogAggregator.cs (1)
44public int Count => _map.Count;
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
96internal int CopyCount => CopyMap.Count;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentSet.cs (1)
58public int Count => _dictionary.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (1)
309if (map.Count > Threshold)
Storage\StorageDatabaseLogger.cs (1)
35if (_set.Count > 10 || !_set.TryAdd(ex.GetType(), ex))
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Rpc\RpcClient.cs (1)
196=> client._outstandingRequests.Count;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentSet.cs (1)
58public int Count => _dictionary.Count;
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionFactory.cs (1)
729return innerCache.Count < InnerCacheSoftLimit
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
863internal int Count => _stringEntries.Count + _nonStringEntries.Count;
Microsoft.Maui.Controls (1)
AnimationExtensions.cs (1)
54 static internal int TweenersCounter => s_tweeners.Count;
Microsoft.ML.Core (2)
Data\ProgressReporter.cs (2)
115Contracts.Assert(_subChannels.Count == 0); 166if (_maxSubId == 0 || _subChannels.Count == 0)
Microsoft.ML.Ensemble (2)
Selector\DiversityMeasure\BaseDisagreementDiversityMeasure.cs (1)
18Contracts.Assert(predictions.Count == models.Count);
Selector\SubModelSelector\BestDiverseSelectorMulticlass.cs (1)
46Host.Assert(predictions.Count == models.Count);
Microsoft.NET.StringTools (3)
WeakStringCache.Concurrent.cs (2)
124_scavengeThreshold = _weakHandlesByHashCode.Count * 2; 130_count = _weakHandlesByHashCode.Count;
WeakStringCache.cs (1)
130DebugInfo debugInfo = new() { LiveStringCount = _stringsByHashCode.Count };
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (3)
TrxLogger.cs (3)
245return _results.Count; 254return _testElements.Count; 263return _entries.Count;
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
973if (projects == null || projects.Count == 0)
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentSet.cs (1)
58public int Count => _dictionary.Count;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
54public int Count => _dictionary.Count;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (1)
309if (map.Count > Threshold)
System.Data.Odbc (1)
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbConnectionPoolGroup.cs (1)
130return _poolCollection.Count;
System.Data.OleDb (1)
System\Data\ProviderBase\DbConnectionPoolGroup.cs (1)
162return _poolCollection.Count;
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\FailedProxyCache.cs (1)
96if (_failedProxies.Count > LargeProxyConfigBoundary && Environment.TickCount64 >= Interlocked.Read(ref _nextFlushTicks))
System.Net.Quic (4)
src\runtime\src\libraries\Common\src\System\Net\SafeHandleCache.cs (4)
111var count = _cache.Count; 119if (_cache.Count >= count) 123NetEventSource.Info(this, $"Current size: {_cache.Count}."); 150NetEventSource.Info(this, $"New size: {_cache.Count}.");
System.Net.Security (10)
src\runtime\src\libraries\Common\src\System\Net\SafeHandleCache.cs (4)
111var count = _cache.Count; 119if (_cache.Count >= count) 123NetEventSource.Info(this, $"Current size: {_cache.Count}."); 150NetEventSource.Info(this, $"New size: {_cache.Count}.");
System\Net\Security\SslSessionsCache.cs (6)
119if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found, Current Cache Count = {s_cachedCreds.Count}"); 128if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found or invalid, Current Cache Count = {s_cachedCreds.Count}"); 163if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Refused to cache an Invalid Handle {creds}, Current Cache Count = {s_cachedCreds.Count}"); 188if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Caching New Handle = {creds}, Current Cache Count = {s_cachedCreds.Count}"); 217if ((s_cachedCreds.Count % CheckExpiredModulo) == 0) 244if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Scavenged cache, New Cache Count = {s_cachedCreds.Count}");
System.Text.Json (4)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (3)
149if (_nameCacheForWriting.Count < NameCacheSizeSoftLimit) 209if (dictionaryKeyPolicy is null && _nameCacheForWriting.Count < NameCacheSizeSoftLimit) 282if (success && _nameCacheForReading.Count < NameCacheSizeSoftLimit)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
257public int Count => _cache.Count;
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\Regex.Cache.cs (3)
125Debug.Assert(s_cacheDictionary.Count == value); 219Debug.Assert(s_cacheList.Count == s_cacheDictionary.Count); 292Debug.Assert(s_cacheList.Count == s_cacheDictionary.Count);
System.Windows.Forms (1)
System\Windows\Forms\Rendering\Animation\AnimationManager.cs (1)
251internal int RendererCountForTesting => _renderer.Count;