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
46 references to Count
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (1)
155if (found && _mruList.Count > 1
Microsoft.Build (9)
BackEnd\Components\RequestBuilder\Lookup.cs (3)
263ErrorUtilities.VerifyThrow(_lookupScopes.Count >= 2, "Too many calls to Leave()."); 272if (_lookupScopes.Count == 2) 1007ErrorUtilities.VerifyThrow(_lookupScopes.Count > 1, "Operation in outer scope not supported");
BackEnd\Components\Scheduler\SchedulingData.cs (1)
219get { return _unscheduledRequests.Count; }
Collections\ItemDictionary.cs (3)
181if (itemTypeBucket.Value == null || itemTypeBucket.Value.Count == 0) 281if (list.Count == 0) 385if (_itemLists.TryGetValue(itemType, out LinkedList<T> list) && list.Count == 0)
Evaluation\ProjectRootElementCache.cs (2)
439DebugTraceCache("Clearing strong refs: ", _strongCache.Count); 603if (_strongCache.Count > s_maximumStrongCacheSize)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
112while (nodes.Count > 0)
Microsoft.CodeAnalysis.EditorFeatures (3)
Classification\Syntactic\SyntacticClassificationTaggerProvider.ClassifiedLineCache.cs (3)
159Contract.ThrowIfTrue(_lruList.Count > CacheSize); 160Contract.ThrowIfTrue(_lruList.Count != _spanToLruNode.Count); 165if (_lruList.Count < CacheSize)
Microsoft.CodeAnalysis.Features (1)
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (1)
94while (s_logs.Count > 100)
Microsoft.CodeAnalysis.Remote.ServiceHub (6)
Host\RemoteSolutionCache.cs (3)
93Contract.ThrowIfTrue(_cacheNodes.Count > _totalHistory); 97Contract.ThrowIfTrue(_cacheNodes.Count > _totalHistory + 1); 105if (_cacheNodes.Count == _totalHistory + 1)
Services\DiagnosticAnalyzer\PerformanceQueue.cs (2)
38public int Count => _snapshots.Count; 41if (_snapshots.Count < _maxSampleSize)
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
278if (_cachedData.Count > MaxCachedDocumentCount)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
112while (nodes.Count > 0)
Microsoft.ML.Data (1)
Model\Pfa\SavePfaCommand.cs (1)
143Host.Assert(transforms.Count == 0 || transforms.Last.Value == end);
Microsoft.ML.FastTree (4)
Training\Test.cs (4)
285public double BestAverageValue => _toleratedQueue.Count == 0 ? 0.0 : _toleratedQueue.First().Sum / _windowSize; 307if (_window.Count == _windowSize) 321if (_window.Count == _windowSize && 322(_toleratedQueue.Count == 0 || _currentWindowSum > _toleratedQueue.Last().Sum))
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
335Host.Assert(transforms.Count == 0 || transforms.Last.Value == end);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\CacheDict.vb (1)
29ElseIf (_list.Count = _maxSize) Then
Microsoft.VisualStudio.LanguageServices (2)
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (1)
154if (History.Count > HistorySize)
MoveToNamespace\VisualStudioMoveToNamespaceOptionsService.cs (1)
66if (History.Count > HistorySize)
System.Collections (5)
System\Collections\Generic\LinkedList.cs (5)
205if (array.Length - index < Count) 292Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<T>() : 463if (array.Length - index < Count) 526if (_index == 0 || (_index == _list.Count + 1)) 544_index = _list.Count + 1;
System.Data.Common (3)
System\Data\SortExpressionBuilder.cs (3)
119Debug.Assert(_selectors.Count == _comparers.Count); 120return _selectors.Count;
System.Net.Requests (1)
System\Net\TimerThread.cs (1)
505if (s_newQueues.Count > 0)
System.Windows.Forms (5)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (2)
204internal override int RowCount => RowsAccessibleObjects?.Count ?? -1; 236if (row.CellsAccessibleObjects?.Count > 0)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarTodayLinkAccessibleObject.cs (1)
45=> ChildIdIncrement + _monthCalendarAccessibleObject.CalendarsAccessibleObjects?.Count ?? -1;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (2)
529if (CalendarsAccessibleObjects!.Count > 0) 541? (int)Math.Ceiling((double)CalendarsAccessibleObjects.Count / ColumnCount)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\EventHandlerService.cs (1)
55Debug.Assert(_handlers.Count > 0, "Should have handlers to look through.");