100 references to RemoveRange
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (1)
2030runningPositions.RemoveRange(0, k); //Delete entries from 0 to k-1
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfigSet.cs (1)
214sectionKey.RemoveRange(globalConfigOptionsCount, sectionKey.Count - globalConfigOptionsCount);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
41list.RemoveRange(targetIndex, list.Count - targetIndex); 60list.RemoveRange(targetIndex, list.Count - targetIndex);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
344chunks.RemoveRange(trimIndex, chunks.Count - trimIndex);
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1966commandLineReferences.RemoveRange(commandLineReferences.Count - pathCount, pathCount);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
18result.RemoveRange(index, count);
Microsoft.CodeAnalysis.CSharp.Features (2)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (2)
307newList.RemoveRange(firstIndex, lastIndex - firstIndex + 1); 335newMembers.RemoveRange(firstMemberIndex, lastMemberIndex - firstMemberIndex + 1);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
18result.RemoveRange(index, count);
Microsoft.CodeAnalysis.UnitTests (1)
Collections\ImmutableSegmentedListTest.cs (1)
95expected.RemoveRange(position, inputLength);
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
41list.RemoveRange(targetIndex, list.Count - targetIndex); 60list.RemoveRange(targetIndex, list.Count - targetIndex);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
344chunks.RemoveRange(trimIndex, chunks.Count - trimIndex);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
344chunks.RemoveRange(trimIndex, chunks.Count - trimIndex);
Microsoft.Extensions.AI.Integration.Tests (1)
ReducingChatClientTests.cs (1)
159list.RemoveRange(0, i + 1);
Microsoft.Maui (1)
Core\Extensions\VisualTreeElementExtensions.cs (1)
287 platformParentPath.RemoveRange(0, indexOfPlatformView + 1);
Microsoft.Maui.Controls (3)
NavigationModel.cs (1)
157 stack.RemoveRange(1, stack.Count - 1);
TemplatedItemsList.cs (2)
1050 _templatedObjects.RemoveRange(e.OldStartingIndex, e.OldItems.Count); 1076 _templatedObjects.RemoveRange(e.OldStartingIndex, e.OldItems.Count);
Microsoft.Maui.Graphics (4)
PathF.cs (4)
680 _points.RemoveRange(pointIndex, _points.Count - pointIndex); 681 _operations.RemoveRange(segmentIndex, _operations.Count - segmentIndex); 682 _arcAngles.RemoveRange(arcIndex, _arcAngles.Count - arcIndex); 683 _arcClockwise.RemoveRange(arcClockwiseIndex, _arcClockwise.Count - arcClockwiseIndex);
Microsoft.ML.Core (2)
Utilities\Heap.cs (2)
114_rgv.RemoveRange(1, _rgv.Count - 1); 329_rgv.RemoveRange(1, cv - 1);
Microsoft.ML.Data (1)
DataLoadSave\LegacyCompositeDataLoader.cs (1)
251exes.RemoveRange(index + 1, exes.Count - index - 1);
Microsoft.ML.FastTree (1)
TreeEnsemble\InternalTreeEnsemble.cs (1)
79public void RemoveAfter(int index) => _trees.RemoveRange(index, NumTrees - index);
Microsoft.ML.Tokenizers (3)
Model\WordPieceTokenizer.cs (3)
372tokens.RemoveRange(initialTokensCount, tokens.Count - initialTokensCount); 514accumulatedIds?.RemoveRange(accumulatedIds.Count - addedIds, addedIds); 521accumulatedIds?.RemoveRange(accumulatedIds.Count - addedIds, addedIds);
Microsoft.ML.Transforms (1)
Expression\LambdaBinder.cs (1)
1390candidates.RemoveRange(count, candidates.Count - count);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (1)
917candidates.RemoveRange(index, span - index)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
1304leadingTriviaList.RemoveRange(firstIndex, count);
PresentationCore (4)
MS\Internal\Ink\Lasso.cs (1)
732points.RemoveRange(0, i /*count*/); // Remove points[0] to points[i-1]
MS\Internal\Ink\StrokeRenderer.cs (1)
168connectingQuadPoints.RemoveRange((cbEndIndex - countToRemove) + 1, countToRemove);
System\Windows\Media\Animation\WeakRefEnumerator.cs (1)
106_list.RemoveRange(_writeIndex, _readIndex - _writeIndex);
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
371list.RemoveRange(count, list.Count - count);
PresentationFramework (24)
MS\Internal\Annotations\TextAnchor.cs (1)
449anchor._segments.RemoveRange(current, anchor._segments.Count - current);
MS\Internal\Documents\PageCache.cs (1)
426_cache.RemoveRange(pageCount, _cache.Count - pageCount);
MS\Internal\Documents\RowCache.cs (1)
1155_rowCache.RemoveRange(rowIndex, removeCount);
MS\Internal\Documents\TextBoxView.cs (4)
1937_visualChildren.RemoveRange(j + 1, _visualChildren.Count - j - 1); 2471_lineMetrics.RemoveRange(lineIndex, lastLineIndex - lineIndex + 1); 2596_lineMetrics.RemoveRange(lineIndex, count); 2785_viewportLineVisuals.RemoveRange(start, count);
MS\Internal\PtsHost\TextParagraph.cs (2)
1554objectsCached.RemoveRange(start, end - start); 1661objectsCached.RemoveRange(first, last - first);
System\Windows\Annotations\AnnotationService.cs (1)
810annotations.RemoveRange(_maxAnnotationsBatch, annotations.Count - _maxAnnotationsBatch);
System\Windows\Controls\DataGridCellsPanel.cs (2)
1152_realizedChildren.RemoveRange(startIndex, count); 2101_realizedChildren.RemoveRange(pos, itemUICount);
System\Windows\Controls\PopupControlService.cs (1)
1536points.RemoveRange(hullCount, N - hullCount);
System\Windows\Controls\Primitives\Selector.cs (1)
2825_list.RemoveRange(j, n-j);
System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
449_generatedItemsCollection.RemoveRange(pos.Index, containerCount); 497_generatedItemsCollection.RemoveRange(fromPos.Index, containerCount);
System\Windows\Controls\VirtualizingStackPanel.cs (4)
4558offsetList.RemoveRange(0, index); 8992_realizedChildren.RemoveRange(pos, uiCount); 9459_realizedChildren.RemoveRange(startIndex, count); 12608_traceList.RemoveRange(0, purgeCount);
System\Windows\Data\CollectionView.cs (1)
1854changeLog.RemoveRange(0, currentIndex);
System\Windows\Documents\TextStore.cs (1)
5089_traceList.RemoveRange(0, purgeCount);
System\Windows\Input\KeyboardNavigation.cs (1)
3563_list.RemoveRange(destIndex, n - destIndex);
System\Windows\Navigation\Journal.cs (1)
330_journalEntryList.RemoveRange(_currentEntryIndex, _journalEntryList.Count - _currentEntryIndex);
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableSortedSet_1.cs (2)
1157list.RemoveRange(index, list.Count - index); 1215list.RemoveRange(index, list.Count - index);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
143attributes.RemoveRange(next, attributes.Count - next);
System.IO.Packaging (3)
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (2)
275_pieceStreamInfoList.RemoveRange(_indexOfLastPieceStreamInfoAccessed + 1, _pieceStreamInfoList.Count - (_indexOfLastPieceStreamInfoAccessed + 1)); 399_sortedPieceInfoList.RemoveRange(_lastPieceIndex + 1, _sortedPieceInfoList.Count - (_lastPieceIndex + 1));
System\IO\Packaging\ZipPackage.cs (1)
1128partPieces.RemoveRange(lastPieceNumber + 1, partPieces.Count - lastPieceNumber - 1);
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
626list.RemoveRange(freeIndex, removed);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
610list.RemoveRange(freeIndex, removed);
System.Net.WebHeaderCollection (1)
System\Net\WebHeaderCollection.cs (1)
241valueList.RemoveRange(i, values.Length - i);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
151recursionCheck.RemoveRange(recursionCheckCount, recursionCheck.Count - recursionCheckCount);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
391callbackContext.Results.RemoveRange(13, callbackContext.Results.Count - 13);
src\System\GC.CoreCLR.cs (1)
633s_notifications.RemoveRange(last, count - last);
System.Private.Windows.Core (1)
System\Collections\Generic\CollectionExtensions.cs (1)
29list.RemoveRange(count, list.Count - count);
System.Private.Xml (2)
System\Xml\Schema\ContentValidator.cs (1)
1918runningPositions!.RemoveRange(0, k); //Delete entries from 0 to k-1
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (1)
1476content.RemoveRange(split + 1, content.Count - split - 1);
System.Text.Json (1)
System\Text\Json\Nodes\JsonArray.IList.cs (1)
185list.RemoveRange(index, count);
System.Text.RegularExpressions (11)
System\Text\RegularExpressions\Regex.Cache.cs (1)
102s_cacheList.RemoveRange(value, s_cacheList.Count - value);
System\Text\RegularExpressions\RegexCharClass.cs (1)
1727rangelist.RemoveRange(j, rangelist.Count - j);
System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
223fixedDistanceSets.RemoveRange(MaxSetsToUse, fixedDistanceSets.Count - MaxSetsToUse);
System\Text\RegularExpressions\RegexNode.cs (7)
665branches.RemoveRange(i + 1, branches.Count - (i + 1)); 1068children.RemoveRange(j, i - j); 1160children.RemoveRange(startingIndex + 1, endingIndex - startingIndex - 1); 1200children.RemoveRange(j, children.Count - j); 1362children.RemoveRange(startingIndex + 1, endingIndex - startingIndex - 1); 1614children.RemoveRange(j, i - j); 1787children.RemoveRange(nextSave, children.Count - nextSave);
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (1)
1458currentEffects.RemoveRange(oldEffectCount, currentEffects.Count - oldEffectCount);
System.Text.RegularExpressions.Generator (9)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
1727rangelist.RemoveRange(j, rangelist.Count - j);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
223fixedDistanceSets.RemoveRange(MaxSetsToUse, fixedDistanceSets.Count - MaxSetsToUse);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (7)
665branches.RemoveRange(i + 1, branches.Count - (i + 1)); 1068children.RemoveRange(j, i - j); 1160children.RemoveRange(startingIndex + 1, endingIndex - startingIndex - 1); 1200children.RemoveRange(j, children.Count - j); 1362children.RemoveRange(startingIndex + 1, endingIndex - startingIndex - 1); 1614children.RemoveRange(j, i - j); 1787children.RemoveRange(nextSave, children.Count - nextSave);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
3915buttonList.RemoveRange(2, count - 2);
System.Windows.Forms.Primitives.TestUtilities (1)
DeviceContextState.cs (1)
131_savedStates.RemoveRange(index, _savedStates.Count - index);