Implemented interface member:
method
Insert
System.Collections.Generic.IList<T>.Insert(System.Int32, T)
305 references to Insert
Aspire.Dashboard (3)
Components\Controls\StructuredLogDetails.razor.cs (1)
111destination.Insert(insertStart, source[i]);
src\Shared\CircularBuffer.cs (2)
139_buffer.Insert(internalIndex, item); 203_buffer.Insert(_end, item);
Aspire.Hosting (3)
ApplicationModel\ResourceCollection.cs (1)
24public void Insert(int index, IResource item) => _resources.Insert(index, item);
src\Shared\CircularBuffer.cs (2)
139_buffer.Insert(internalIndex, item); 203_buffer.Insert(_end, item);
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Query.cs (1)
150buffer.Insert(l, nav.Clone());
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
201_items.Insert(index, item);
Shared\Options\ApplicationOptions.cs (1)
282this._warnings.Insert(idx, warning);
Shared\Options\ListValue.cs (1)
37this.InnerList.Insert(index, CastValue(e.Value));
illink (7)
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonArray.cs (1)
76_items.Insert(index, value);
Microsoft.AspNetCore.Components (1)
Sections\SectionRegistry.cs (1)
21providers.Insert(0, provider);
Microsoft.AspNetCore.Components.WebView.Test (1)
Infrastructure\ContainerNode.cs (1)
56Children.Insert(childIndex, child);
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelStateDictionary.cs (1)
918ChildNodes.Insert(~index, modelStateNode);
Microsoft.AspNetCore.Mvc.Core (3)
Formatters\TextOutputFormatter.cs (2)
256sorted.Insert(position + 1, value); 260sorted.Insert(~position, value);
Infrastructure\CopyOnWriteList.cs (1)
101Writable.Insert(index, item);
Microsoft.AspNetCore.Mvc.Razor (1)
RazorViewEngine.cs (1)
448viewStartPages.Insert(0, new ViewLocationCacheItem(result.RazorPageFactory, filePath));
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageActionInvokerCache.cs (1)
122viewStartFactories.Insert(0, factoryResult.RazorPageFactory);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
GlobbingUrlBuilder.cs (1)
165matchedUrls.Insert(~index, matchedUrl);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
AttributeDictionary.cs (1)
103_items.Insert(index, value);
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
266responseHeaders.Insert(i, new StaticAssetResponseHeader(HeaderNames.CacheControl, "no-cache"));
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
353buckets.Insert(~matchingBucketIndex, matchingBucket);
Evaluation\Evaluator.cs (1)
1860projectList.Insert(0, CreateProjectForSdkResult(sdkResult));
Microsoft.Build.CommandLine.UnitTests (1)
TestProgram.cs (1)
13newArgs.Insert(0, typeof(Program).Assembly.Location);
Microsoft.Build.Engine.OM.UnitTests (1)
TestProgram.cs (1)
13newArgs.Insert(0, typeof(Program).Assembly.Location);
Microsoft.Build.Engine.UnitTests (1)
TestProgram.cs (1)
13newArgs.Insert(0, typeof(Program).Assembly.Location);
Microsoft.Build.Framework.UnitTests (1)
TestProgram.cs (1)
13newArgs.Insert(0, typeof(Program).Assembly.Location);
Microsoft.Build.Tasks.Core (1)
BootstrapperUtil\ProductBuilderCollection.cs (1)
53_list.Insert(index, builder);
Microsoft.Build.Tasks.UnitTests (1)
TestProgram.cs (1)
13newArgs.Insert(0, typeof(Program).Assembly.Location);
Microsoft.Build.Utilities.UnitTests (1)
TestProgram.cs (1)
13newArgs.Insert(0, typeof(Program).Assembly.Location);
Microsoft.Cci.Extensions (1)
HostEnvironment.cs (1)
507contractSet.Insert(0, coreAssemblyFile);
Microsoft.CodeAnalysis (1)
Text\ChangedText.cs (1)
243list.Insert(0, change.ChangeRanges);
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1406metadataReferences.Insert(0, new CommandLineReference(Path.Combine(sdkDirectory, "mscorlib.dll"), MetadataReferenceProperties.Assembly));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenCapturing.cs (2)
48VariablesByScope.Insert(depth, new List<string>() { varName }); 326copy.LocalFuncs.Insert(depth, new List<string>());
Microsoft.CodeAnalysis.CSharp.Features (1)
SplitStringLiteral\InterpolatedStringSplitter.cs (1)
59afterSplitContents.Insert(0, CreateInterpolatedStringText(CursorPosition, content.Span.End));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverFuzzTests.cs (1)
302editedInputs.Insert(random.Next(editedInputs.Count), new InMemoryAdditionalText(hintNameProvider.GetNextHintName(), getRandomLetter()));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\ReferenceManagerTests.cs (2)
844newParts.Insert(dir, ".."); 845newParts.Insert(dir, parts[dir]);
Microsoft.CodeAnalysis.Features (2)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (1)
152newBatchOfFixes.Insert(0, (diagnostic: null, batchAttributeRemoveFix));
RQName\RQNodeBuilder.cs (1)
81typeInfos.Insert(0, new RQUnconstructedTypeInfo(currentType.Name, currentType.TypeParameters.Length));
Microsoft.CodeAnalysis.Scripting (1)
Hosting\SynchronizedList.cs (1)
104_list.Insert(index, item);
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\CoreClr\CoreCLRRuntimeEnvironment.cs (1)
70_emitData.AllModuleData.Insert(0, _emitData.MainModule);
Microsoft.CodeAnalysis.UnitTests (1)
Collections\ImmutableSegmentedListTest.cs (1)
70expected.Insert(position, value);
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineArguments.vb (1)
119resolved.Insert(0, defaultCorLibrary)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
CodeCleanup\Extensions.cs (1)
67members.Insert(index, member);
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\GeneratedEmbeddings.cs (1)
87public void Insert(int index, TEmbedding item) => _embeddings.Insert(index, item);
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
262contents.Insert(0, new TextContent(message.Content));
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
241_sources.Insert(index, source);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
94_descriptors.Insert(index, item);
Microsoft.Extensions.DependencyModel (1)
Resolution\AppBaseCompilationAssemblyResolver.cs (1)
77directories.Insert(0, refsPath);
Microsoft.Maui (3)
Hosting\Internal\FontCollection.cs (1)
40 public void Insert(int index, FontDescriptor item) => _descriptors.Insert(index, item);
Hosting\Internal\MauiServiceCollection.cs (1)
63 _descriptors.Insert(index, item);
Layouts\Flex.cs (1)
405 base.Insert(index, child);
Microsoft.Maui.Controls (35)
Compatibility\Handlers\ListView\iOS\ContextActionCell.cs (1)
538 _buttons.Insert(0, button);
DefinitionCollection.cs (1)
78 _internalList.Insert(index, item);
Items\MarshalingObservableCollection.cs (2)
98 Insert(args.NewStartingIndex, toMove); 132 Insert(startIndex, item);
Layout\Layout.cs (2)
75 _children.Insert(index, value); 228 _children.Insert(index, child);
Menu\MenuFlyoutSubItem.cs (1)
65 _menus.Insert(index, item);
NavigationModel.cs (1)
76 currentStack.Insert(index, page);
NavigationPage\NavigationPage.cs (2)
586 parentPages.Insert(0, this); 829 pagesToRemove.Insert(0, page);
NavigationPage\NavigationPageToolbar.cs (2)
96 _navigationPagesStack.Insert(0, parentNavigationPage); 103 _navigationPagesStack.Insert(0, parentNavigationPage);
NavigationProxy.cs (1)
178 _pushStack.Value.Insert(index, page);
NavigationStepRequest.cs (3)
35 set => _innerList.Insert(index, value); 69 _innerList.Insert(index, item); 70 _pages.Insert(index, item.Page);
OrderedDictionary.cs (2)
356 _keyOrder.Insert(index, key); 364 _keyOrder.Insert(newIndex, key);
Shell\RouteRequestBuilder.cs (1)
148 _fullSegments.Insert(0, Item.Route);
Shell\ShellNavigationManager.cs (1)
570 routeStack.Insert(0, "/");
Shell\ShellNavigationState.cs (2)
99 toKeep.Insert(0, ""); 100 toKeep.Insert(0, "");
Shell\ShellSection.cs (3)
733 stack.Insert(index, page); 747 _navStack.Insert(index, page); 1197 stack.Insert(index, page);
Shell\ShellUriHandler.cs (5)
66 restOfPath.Insert(0, shell.CurrentItem.CurrentItem.CurrentItem.Route); 67 restOfPath.Insert(0, shell.CurrentItem.CurrentItem.Route); 68 restOfPath.Insert(0, shell.CurrentItem.Route); 152 segments.Insert(0, routeHost); 155 segments.Insert(1, route);
SynchronizedList.cs (1)
95 _list.Insert(index, item);
TemplatedItemsList.cs (3)
564 _templatedObjects.Insert(index, content); 776 _templatedObjects.Insert(index, groupProxy.HeaderContent); 907 _templatedObjects.Insert(insertIndex + i, til.HeaderContent);
VisualStateManager.cs (1)
783 _internalList.Insert(index, item);
Microsoft.Maui.Controls.Compatibility (1)
iOS\ContextActionCell.cs (1)
542 _buttons.Insert(0, button);
Microsoft.Maui.Graphics (10)
PathF.cs (10)
321 _points.Insert(pointIndex, point); 322 _operations.Insert(index, PathOperation.Line); 380 _points.Insert(pointIndex, point); 381 _points.Insert(pointIndex, controlPoint); 382 _operations.Insert(index, PathOperation.Quad); 418 _points.Insert(pointIndex, point); 419 _points.Insert(pointIndex, controlPoint2); 420 _points.Insert(pointIndex, controlPoint1); 421 _operations.Insert(index, PathOperation.Cubic); 1011 operations.Insert(0, PathOperation.Move);
Microsoft.ML.Data (1)
Transforms\ColumnBindingsBase.cs (1)
711indices.Insert(j + 1, ~i);
Microsoft.ML.FastTree (4)
GamModelParameters.cs (3)
520internalNodeIndices.Insert(0, mid); 521lteChild.Insert(0, left); 522gtChild.Insert(0, right);
TreeEnsemble\InternalTreeEnsemble.cs (1)
76public void AddTreeAt(InternalRegressionTree tree, int index) => _trees.Insert(index, tree);
Microsoft.ML.OnnxConverter (1)
OnnxUtils.cs (1)
384dimsLocal?.Insert(0, -1);
Microsoft.ML.StandardTrainers (1)
Standard\SdcaBinary.cs (1)
1799outCols.Insert(1, new SchemaShape.Column(
Microsoft.ML.TimeSeries (2)
PolynomialUtils.cs (2)
370factors.Insert(ind, f1); 372factors.Insert(~ind, f1);
Microsoft.ML.Tokenizers (2)
Model\BertTokenizer.cs (2)
250list.Insert(0, ClassificationTokenId); 272list.Insert(0, ClassificationTokenId);
Microsoft.ML.Tokenizers.Tests (8)
CodeGenTests.cs (8)
553idList.Insert(0, codeGenTokenizer.BeginningOfSentenceId!.Value); 555tokensList.Insert(0, codeGenTokenizer.BeginningOfSentenceToken!); 576idList.Insert(0, codeGenTokenizer.BeginningOfSentenceId!.Value); 578tokensList.Insert(0, codeGenTokenizer.BeginningOfSentenceToken!); 819idList.Insert(0, codeGenTokenizer.BeginningOfSentenceId!.Value); 822tokensList.Insert(0, codeGenTokenizer.BeginningOfSentenceToken!); 848idList.Insert(0, codeGenTokenizer.BeginningOfSentenceId!.Value); 851tokensList.Insert(0, codeGenTokenizer.BeginningOfSentenceToken!);
Microsoft.ML.TorchSharp (2)
NasBert\NasBertTrainer.cs (1)
589newList.Insert(0, 0);
NasBert\NerTrainer.cs (1)
130tl.Insert(0, 0);
Microsoft.VisualStudio.LanguageServices (3)
ChangeSignature\ChangeSignatureDialogViewModel.cs (1)
468list.Insert(index + delta, param);
PickMembers\PickMembersDialogViewModel.cs (1)
176list.Insert(index + delta, param);
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
388names.Insert(0, name);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (2)
1316leadingTriviaList.Insert(firstIndex, trivia); 1438leadingTriviaList.Insert(index, triviaElement);
PresentationCore (36)
MS\Internal\DpiUtil\DpiUtil+SystemDpiHelper.cs (2)
82UIElement.DpiScaleXValues.Insert(0, systemDpiScale.DpiScaleX); 83UIElement.DpiScaleYValues.Insert(0, systemDpiScale.DpiScaleY);
MS\Internal\Ink\CuspData.cs (2)
70_points.Insert(index, cdp); 71_nodes.Insert(index, _nodes[index - 1] + (XY(index) - XY(index - 1)).Length);
MS\Internal\Ink\ErasingStroke.cs (1)
202eraseAt.Insert(i, fragment);
System\Windows\FreezableCollection.cs (1)
203_collection.Insert(index, value);
System\Windows\Ink\IncrementalHitTester.cs (1)
172_strokeInfos.Insert(firstIndex, new StrokeInfo(added[i]));
System\Windows\Input\Command\CommandBindingCollection.cs (1)
210_innerCBList?.Insert(index, commandBinding);
System\Windows\Input\Command\InputBindingCollection.cs (1)
282_innerBindingList.Insert(index, inputBinding);
System\Windows\Input\Command\InputGestureCollection.cs (1)
311_innerGestureList?.Insert(index, inputGesture);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
40_plugInCollectionList.Insert(FindZOrderIndex(pic), pic);
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceInfo.cs (1)
223supportedProperties.Insert(StylusPointDescription.RequiredPressureIndex, prop);
System\Windows\Input\Stylus\Wisp\PenContext.cs (1)
157propertyInfos.Insert(StylusPointDescription.RequiredPressureIndex /*2*/, StylusPointPropertyInfoDefaults.NormalPressure);
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
263_plugInCollectionList.Insert(FindZOrderIndex(pic), pic);
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (1)
942properties.Insert(StylusPointDescription.RequiredPressureIndex /*2*/, System.Windows.Input.StylusPointProperties.NormalPressure);
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
369_keyFrames.Insert(index, keyFrame);
PresentationFramework (44)
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
438adorners.Insert(index, adorner);
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (5)
409_segments.Insert(ind++, temp); 418_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 430_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 436_segments.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange)); 674_owners.Insert(i, owner);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
1032_components.Insert(i, component);
MS\Internal\Annotations\TextAnchor.cs (3)
337anchor._segments.Insert(currentIndex + 1, CreateNormalizedSegment(otherSegment.End, current.End)); 431anchor._segments.Insert(current + 1, CreateNormalizedSegment(otherSegment.End, currentSegment.End)); 642_segments.Insert(i, newSegment);
MS\Internal\Documents\TextBoxView.cs (2)
2546_lineMetrics.Insert(lineIndex, record); 2736_viewportLineVisuals.Insert(lineIndex - _viewportLineVisualsIndex, null);
MS\Internal\Documents\TextContainerHelper.cs (4)
447ancestorsStart.Insert(0, element); 448positionsStart.Insert(0, position.CreatePointer(LogicalDirection.Forward)); 463ancestorsEnd.Insert(0, element); 464positionsEnd.Insert(0, position.CreatePointer(LogicalDirection.Backward));
MS\Internal\Globalization\BamlTreeNode.cs (1)
513_children.Insert(lastProperty, child);
System\Windows\Annotations\LocatorPartList.cs (1)
370results.Insert(0, this);
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
80children.Insert(0, peer);
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (1)
58children.Insert(0, columnsHeaderPresenterPeer);
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
79children.Insert(0, peer);
System\Windows\Automation\Peers\GridViewHeaderRowPresenterAutomationPeer.cs (1)
55newList.Insert(0, peer);
System\Windows\Controls\CustomDictionarySources.cs (1)
97_uriList.Insert(index, item);
System\Windows\Controls\DataGridCellsPanel.cs (2)
749_realizedChildren.Insert(childIndex, container); 1011realizedColumnDisplayIndices.Insert(displayIndexListIterator, displayIndex);
System\Windows\Controls\DataGridColumnCollection.cs (2)
364DisplayIndexMap.Insert(newDisplayIndex, columnIndex); 668DisplayIndexMap.Insert(newDisplayIndex, columnIndex);
System\Windows\Controls\GridViewColumnCollection.cs (1)
361_actualIndices.Insert(index, count);
System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
412_generatedItemsCollection.Insert(pos.Index + 1 + i, e); 501_generatedItemsCollection.Insert(toIndex + i, elements[i]);
System\Windows\Controls\TextBlock.cs (1)
1859textSegmentsList.Insert(0, textSegment);
System\Windows\Controls\ToolBarTray.cs (2)
889_bands.Insert(i, CreateBand(toolBarIndex)); 922band.Insert(i, toolBar);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
8820_realizedChildren.Insert(childIndex, container);
System\Windows\Data\BindingExpressionBase.cs (1)
296list.Insert(0, BaseValidationError);
System\Windows\Documents\FixedFlowMap.cs (1)
360_flowOrder.Insert(newFlow.Fp, newFlow);
System\Windows\Documents\FixedPage.cs (1)
1038childPath.Insert(0, childIndex);
System\Windows\Documents\FixedSOMContainer.cs (1)
157_semanticBoxes.Insert(i+1, box);
System\Windows\Documents\FixedSOMLineCollection.cs (1)
89ranges.Insert(i, range);
System\Windows\Documents\FixedSOMLineRanges.cs (2)
24Start.Insert(i, start); 25End.Insert(i, end);
System\Windows\Documents\Speller.cs (1)
222_ignoredWordsList.Insert(~index, word);
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
368_keyFrames.Insert(index, keyFrame);
System\Windows\TriggerActionCollection.cs (1)
141_rawList.Insert(index, value);
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
296templates.Insert(0, new ServerSideTemplate(null));
ReachFramework (1)
AlphaFlattener\PrimitiveList.cs (1)
326list.Insert(pos, n);
Roslyn.Test.PdbUtilities (1)
Reader\PdbValidation.cs (1)
668expectedTags.Insert(0, new { Tag = "<M:0>", StartIndex = methodStart });
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\Serialization\ContextStack.cs (1)
101_contextStack.Insert(0, context);
System.Configuration.ConfigurationManager (1)
System\Configuration\SectionRecord.cs (1)
228inputs.Insert(0, sectionInput);
System.Data.Common (2)
System\Data\Common\DataColumnMappingCollection.cs (1)
315ArrayList().Insert(index, value);
System\Data\Common\DataTableMappingCollection.cs (1)
252ArrayList().Insert(index, value);
System.Data.Odbc (1)
System\Data\Odbc\OdbcParameterCollectionHelper.cs (1)
215InnerList.Insert(index, (OdbcParameter)value);
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\LegacyPropagator.cs (1)
171baggageList.Insert(0, new KeyValuePair<string, string?>(
System.Diagnostics.TraceSource (2)
System\Diagnostics\TraceListeners.cs (2)
173_list.Insert(index, listener); 283_list.Insert(index, (TraceListener?)value);
System.Net.Requests (1)
System\Net\WebRequest.cs (1)
304prefixList.Insert(i, new WebRequestPrefixElement(prefix, creator));
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\TensorExtensions.cs (3)
2778origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 2848origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 2917origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (2)
796Insert(index, (T)item!); 857Insert(index++, en.Current);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
4604list.Insert(0, tc);
System.Private.Xml (5)
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (1)
116list.Insert(index, value);
System\Xml\XPath\Internal\Query.cs (1)
141buffer.Insert(l, nav.Clone());
System\Xml\Xsl\Runtime\DodSequenceMerge.cs (2)
127_sequencesToMerge.Insert(i + 1, sequence); 144_sequencesToMerge.Insert(0, sequence);
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
1770content.Insert(0, F.CopyOf(select, _input.XslVersion));
System.Text.Json (2)
System\Text\Json\Nodes\JsonArray.IList.cs (1)
80List.Insert(index, item);
System\Text\Json\Serialization\ConfigurationList.cs (1)
100_list.Insert(index, item);
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\RegexNode.cs (4)
727branches.Insert(compare++, nextChild); 993children.Insert(i + 1, atChild); 1574children.Insert(i + 1, atChild); 2744((List<RegexNode>)Children).Insert(index, newChild);
System.Text.RegularExpressions.Generator (7)
RegexGenerator.Emitter.cs (3)
611lines.Insert(uncheckedStart, " unchecked"); 612lines.Insert(uncheckedStart + 1, " {"); 617lines.Insert(lines.Count - 1, " }");
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (4)
727branches.Insert(compare++, nextChild); 993children.Insert(i + 1, atChild); 1574children.Insert(i + 1, atChild); 2744((List<RegexNode>)Children).Insert(index, newChild);
System.Windows.Controls.Ribbon (6)
Microsoft\Windows\Automation\Peers\RibbonComboBoxAutomationPeer.cs (1)
69children.Insert(0, peer);
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
132children.Insert(0, RibbonHelper.CreatePeer(filterHost));
Microsoft\Windows\Automation\Peers\RibbonMenuButtonAutomationPeer.cs (1)
60children.Insert(0, peer);
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (1)
51children.Insert(0, HeaderPeer);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (2)
41GeneratedChildren.Insert(indexToInsertAt, childToAdd); 61GeneratedChildren.Insert(args.Position.Index, childToMove);
System.Windows.Forms (32)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
116assemblyList.Insert(0, asmName);
System\Windows\Forms\Application.ThreadContext.cs (1)
219_messageFilters.Insert(0, filter);
System\Windows\Forms\AutoCompleteStringCollection.cs (1)
141_data.Insert(index, value);
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (2)
135InnerList.Insert(index, entry); 325InnerList.Insert(index, new Entry(item));
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (2)
279_items.Insert(index, dataGridViewCell); 287_items.Insert(index, dataGridViewCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
898_items.Insert(columnIndex, dataGridViewColumn);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (1)
232InnerArray.Insert(index, item);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (12)
1540SharedList.Insert(rowIndex, dataGridViewRow); 1542_rowStates.Insert(rowIndex, dataGridViewRow.State); 1621SharedList.Insert(indexDestination + i, rowTemplate); 1622_rowStates.Insert(indexDestination + i, rowTemplateState); 1640SharedList.Insert(indexDestination, rowTemplate); 1641_rowStates.Insert(indexDestination, rowTemplateState); 1665SharedList.Insert(indexDestination + i, rowTemplate2); 1666_rowStates.Insert(indexDestination + i, rowTemplateState); 1734SharedList.Insert(indexDestination, dataGridViewRow); 1735_rowStates.Insert(indexDestination, rowState); 1814SharedList.Insert(rowIndexInserted, dataGridViewRow); 1816_rowStates.Insert(rowIndexInserted, dataGridViewRow.State);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4055_listViewItems.Insert(displayIndex + i, item);
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
249List.Insert(index, group);
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
95Items.Insert(index, item);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (1)
312_owner._subItems.Insert(index, item);
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1148_tabPages.Insert(index, tabPage);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
316InnerList.Insert(index, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (1)
136InnerList.Insert(index, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (1)
213InnerList.Insert(index, control.ToolStripPanelCell!);
System\Windows\Forms\Controls\UpDown\NumericUpDownAccelerationCollection.cs (1)
39_items.Insert(index, acceleration);
System\Windows\Forms\Internal\ItemArray.cs (1)
227_entries.Insert(index, item);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
53_innerList.Insert(index, tableLayoutStyle);
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
886_lines.Insert(i, newLine);
System\ComponentModel\Design\DesignerHost.cs (1)
1123errorList.Insert(0, ex);
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
320_events.Insert(changeIdx, evt);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
432_behaviorStack.Insert(0, behavior);
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
557_maskDescriptors.Insert(index, maskDescriptor);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
163group.Items.Insert(0, _contextMenuCol); 164group.Items.Insert(0, _contextMenuRow);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
54_list.Insert(index, item ?? ThrowArgumentNull(nameof(item)));
System.Windows.Forms.Tests (2)
System\Windows\Forms\BindingSourceTests.cs (1)
780public void Insert(int index, T item) => _innerList.Insert(index, item);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (1)
2692items.Insert(0, value);
System.Xaml (5)
System\Xaml\XamlObjectReader.cs (3)
460objInfo.Properties.Insert(0, new MemberMarkupInfo() 1045properties.Insert(posOfFirstNonAttributableProperty, property); 3006nodes.Insert(objectPosition, property);
System\Xaml\XamlSchemaContext.cs (1)
1424Insert(index, new WeakReference(item));
System\Xaml\XamlXmlWriter.cs (1)
1973writer.ppStateInfo.NodesList[i].Insert(0, new XamlNode(XamlNodeType.StartMember, member));
xunit.console (2)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (1)
96result.Insert(0, fallbackRuntimeIdentifier.IsValueCreated ? fallbackRuntimeIdentifier.Value : currentRuntimeIdentifier);
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\AppBaseCompilationAssemblyResolver.cs (1)
66directories.Insert(0, refsPath);