270 implementations of Add
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImportCollection.cs (1)
198int IList.Add(object value)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
265int IList.Add(object value)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
224int IList.Add(object value)
Shared\Options\ListValue.cs (1)
93int IList.Add(object value)
GenerateDocumentationAndConfigFiles (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Metrics (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Metrics.Legacy (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.Build.Framework (5)
ImmutableSegmentedList`1.cs (1)
658int IList.Add(object? value)
ImmutableSegmentedList`1+Builder.cs (1)
230int IList.Add(object? value)
ImmutableSegmentedList`1+ValueBuilder.cs (1)
339int IList.Add(object? value)
SegmentedArray`1.cs (1)
192int IList.Add(object? value)
SegmentedList`1.cs (1)
247int IList.Add(object? item)
Microsoft.CodeAnalysis (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.CodeStyle (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.Collections.Package (5)
Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.Extensions.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.Threading.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.Workspaces (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Microsoft.Maui.Controls (4)
ListProxy.cs (1)
443 int IList.Add(object item)
ObservableWrapper.cs (1)
278 public int Add(object value)
ReadOnlyListAdapter.cs (1)
51 public int Add(object value)
TemplatedItemsList.cs (1)
272 int IList.Add(object item)
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
666Private Function IListAdd(ByVal value As Object) As Integer Implements IList.Add
PresentationCore (49)
System\Windows\FreezableCollection.cs (1)
436int IList.Add(object value)
System\Windows\Generated\TextDecorationCollection.cs (1)
348int IList.Add(object value)
System\Windows\Input\Command\CommandBindingCollection.cs (1)
104int IList.Add(object commandBinding)
System\Windows\Input\Command\InputBindingCollection.cs (1)
116int IList.Add(object inputBinding)
System\Windows\Input\Command\InputGestureCollection.cs (1)
108int IList.Add(object inputGesture)
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
347int IList.Add(object value)
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
350int IList.Add(object value)
System\Windows\Media\FamilyMapCollection.cs (1)
193int SC.IList.Add(object value)
System\Windows\Media\FamilyTypefaceCollection.cs (1)
179int SC.IList.Add(object value)
System\Windows\Media\Generated\DoubleCollection.cs (1)
309int IList.Add(object value)
System\Windows\Media\Generated\DrawingCollection.cs (1)
369int IList.Add(object value)
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
357int IList.Add(object value)
System\Windows\Media\Generated\GeometryCollection.cs (1)
369int IList.Add(object value)
System\Windows\Media\Generated\GradientStopCollection.cs (1)
357int IList.Add(object value)
System\Windows\Media\Generated\Int32Collection.cs (1)
309int IList.Add(object value)
System\Windows\Media\Generated\PathFigureCollection.cs (1)
358int IList.Add(object value)
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
357int IList.Add(object value)
System\Windows\Media\Generated\PointCollection.cs (1)
309int IList.Add(object value)
System\Windows\Media\Generated\TextEffectCollection.cs (1)
357int IList.Add(object value)
System\Windows\Media\Generated\TransformCollection.cs (1)
369int IList.Add(object value)
System\Windows\Media\Generated\VectorCollection.cs (1)
309int IList.Add(object value)
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
355int IList.Add(object value)
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
367int IList.Add(object value)
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
367int IList.Add(object value)
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
307int IList.Add(object value)
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
367int IList.Add(object value)
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
307int IList.Add(object value)
System\Windows\Media3D\Visual3DCollection.cs (1)
305int IList.Add(object value)
PresentationFramework (17)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
171public int Add(object item)
MS\Internal\Data\LiveShapingList.cs (1)
501public int Add(object value)
MS\Internal\Documents\ContentElementCollection.cs (1)
401int IList.Add(object value)
System\Windows\Controls\ColumnDefinition.cs (1)
125int IList.Add(object value)
System\Windows\Controls\CustomDictionarySources.cs (1)
203int IList.Add(object value)
System\Windows\Controls\ItemCollection.cs (1)
223public int Add(object newItem)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
228public int Add(object value)
System\Windows\Controls\RowDefinition.cs (1)
120int IList.Add(object value)
System\Windows\Controls\UIElementCollection.cs (1)
401int IList.Add(object value)
System\Windows\Data\CompositeCollection.cs (1)
106public int Add(object newItem)
System\Windows\Documents\TableCellCollection.cs (1)
272int IList.Add(object value)
System\Windows\Documents\TableColumnCollection.cs (1)
272int IList.Add(object value)
System\Windows\Documents\TableRowCollection.cs (1)
272int IList.Add(object value)
System\Windows\Documents\TableRowGroupCollection.cs (1)
272int IList.Add(object value)
System\Windows\Documents\TextElementCollection.cs (1)
418int IList.Add(object value)
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
272int IList.Add(object keyFrame)
System\Windows\TriggerActionCollection.cs (1)
187int IList.Add(object value)
Roslyn.Diagnostics.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
System.CodeDom (1)
System\CodeDom\CodeNamespaceImportCollection.cs (1)
86int IList.Add(object value) => _data.Add((CodeNamespaceImport)value);
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (3)
1331int IList.Add(object? value) 1621int IList.Add(object? value) => throw new NotSupportedException(); 1782int IList.Add(object? value) => throw new NotSupportedException();
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableArray_1.cs (1)
1196int IList.Add(object? value)
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
1030int IList.Add(object? value)
System\Collections\Immutable\ImmutableList_1.cs (1)
999int IList.Add(object? value) => throw new NotSupportedException();
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
835int IList.Add(object? value)
System.Collections.NonGeneric (3)
System\Collections\CollectionBase.cs (1)
148int IList.Add(object? value)
System\Collections\SortedList.cs (2)
922public int Add(object? key) 1026public int Add(object? key)
System.Collections.Specialized (2)
System\Collections\Specialized\OrderedDictionary.cs (1)
656int IList.Add(object? value)
System\Collections\Specialized\StringCollection.cs (1)
198int IList.Add(object? value)
System.ComponentModel.TypeConverter (4)
System\ComponentModel\Design\DesignerOptionService.cs (1)
356int IList.Add(object? value) => throw new NotSupportedException();
System\ComponentModel\EventDescriptorCollection.cs (1)
395int IList.Add(object? value) => Add((EventDescriptor?)value);
System\ComponentModel\ListSortDescriptionCollection.cs (1)
46int IList.Add(object? value) => throw new InvalidOperationException(SR.CantModifyListSortDescriptionCollection);
System\ComponentModel\PropertyDescriptorCollection.cs (1)
549int IList.Add(object? value) => Add((PropertyDescriptor)value!);
System.Data.Common (5)
System\Data\Common\DataColumnMappingCollection.cs (1)
121public int Add(object? value)
System\Data\Common\DataTableMappingCollection.cs (1)
91public int Add(object? value)
System\Data\Common\DbParameterCollection.cs (1)
72int IList.Add(object? value) => Add(value!);
System\Data\DataView.cs (1)
838int IList.Add(object? value)
System\Data\DataViewManager.cs (1)
169int IList.Add(object? value)
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceListeners.cs (1)
246int IList.Add(object? value)
System.DirectoryServices (1)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (1)
459int System.Collections.IList.Add(object? value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); }
System.DirectoryServices.AccountManagement (1)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (1)
379int System.Collections.IList.Add(object value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); }
System.Linq.Expressions (1)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
271int IList.Add(object? value)
System.ObjectModel (2)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (2)
302public int Add(object? value) => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 362public int Add(object? value) => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection);
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1034int IList.Add(object? value)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (4)
153public virtual int Add(object? value) 1514public int Add(object? value) 1613public int Add(object? obj) 1872public int Add(object? obj)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
223int IList.Add(object? item)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
281int IList.Add(object? value)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
182int IList.Add(object? value)
System.Private.Xml (2)
System\Xml\Xsl\ListBase.cs (1)
143int System.Collections.IList.Add(object? value)
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (1)
258int System.Collections.IList.Add(object? value)
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\CanonicalXmlNodeList.cs (1)
34public int Add(object? value)
System\Security\Cryptography\Xml\EncryptionPropertyCollection.cs (1)
28int IList.Add(object? value)
System\Security\Cryptography\Xml\ReferenceList.cs (1)
28public int Add(object? value)
System.ServiceModel.Primitives (1)
netstandard.cs (1)
45int IList.Add(object value) { return default; }
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
151int IList.Add(object? value) =>
System\Text\RegularExpressions\GroupCollection.cs (1)
165int IList.Add(object? value) =>
System\Text\RegularExpressions\MatchCollection.cs (1)
164int IList.Add(object? value) =>
System.Windows.Forms (39)
System\Windows\Forms\AutoCompleteStringCollection.cs (1)
187int IList.Add(object? value) => Add((string)value!);
System\Windows\Forms\Control.ControlCollection.cs (1)
125int IList.Add(object? control)
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
172int IList.Add(object? item)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
20int IList.Add(object? value) => Add((DataGridViewCell)value!);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
37int IList.Add(object? value) => Add((DataGridViewColumn)value!);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (1)
84int IList.Add(object? item) => Add(item!);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
39int IList.Add(object? value) => Add((DataGridViewRow)value!);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (1)
18int IList.Add(object? value)
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (1)
14int IList.Add(object? value)
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (1)
18int IList.Add(object? value) => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
260int IList.Add(object? value)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
188int IList.Add(object? value)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedIndexCollection.cs (1)
89int IList.Add(object? value)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (1)
111int IList.Add(object? value)
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (1)
151int IList.Add(object? item)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
161int IList.Add(object? item) => Add(item!);
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (1)
109int IList.Add(object? value)
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
152int IList.Add(object? value)
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (1)
193int IList.Add(object? value)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (1)
290int IList.Add(object? value)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (1)
291int IList.Add(object? value)
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (1)
132int IList.Add(object? item)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (1)
216int IList.Add(object? value)
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (1)
229int IList.Add(object? value)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
141int IList.Add(object? value)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (1)
184int IList.Add(object? item)
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (1)
88int IList.Add(object? value)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
302int IList.Add(object? value) { return Add((ToolStripItem)value!); }
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (1)
117int IList.Add(object? value) { return Add((ToolStripPanelRow)value!); }
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (1)
184int IList.Add(object? value) { return Add((Control)value!); }
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
355int IList.Add(object? node)
System\Windows\Forms\Controls\Unsupported\ContextMenu\Menu.MenuItemCollection.cs (1)
60int IList.Add(object value) => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\GridColumnStylesCollection.cs (1)
28int IList.Add(object value) => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\GridTableStylesCollection.cs (1)
26int IList.Add(object value) => throw null;
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.StatusBarPanelCollection.cs (1)
58int IList.Add(object value) => throw null;
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.ToolBarButtonCollection.cs (1)
56int IList.Add(object button) => throw null;
System\Windows\Forms\DataBinding\BindingSource.cs (1)
1459public virtual int Add(object? value)
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
132int IList.Add(object? value) => ((IList)InnerList).Add(value);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
26int IList.Add(object? style) => Add((TableLayoutStyle)style!);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
32int IList.Add(object control) => ((IList)_realCollection).Add(control);
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
111int IList.Add(object? value) => value is ImageListImage image ? Add(image) : throw new ArgumentException(null, nameof(value));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2163int IList.Add(object control) => ((IList)_realCollection).Add(control);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
85int IList.Add(object? value)
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingSourceTests.cs (1)
784public int Add(object item) => ((IList)_innerList).Add(item);
System.Xaml.Tests (1)
System\Xaml\XamlTypeTests.cs (1)
3230public int Add(object? value) => throw new NotImplementedException();
Test.Utilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
Text.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
660int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
232int IList.Add(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
341int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
191int IList.Add(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
277int IList.Add(object? item)
662 references to Add
dotnet-svcutil-lib (42)
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerErrorCollection.cs (1)
71return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeArgumentCollection.cs (1)
74return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclarationCollection.cs (1)
74return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeCatchClauseCollection.cs (1)
74return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeCommentStatementCollection.cs (1)
74return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeDirectiveCollection.cs (1)
47return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeExpressionCollection.cs (1)
74return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceCollection.cs (1)
74return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeParameterDeclarationExpressionCollection.cs (1)
74return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeStatementCollection.cs (1)
74return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDeclarationCollection.cs (1)
74return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeMemberCollection.cs (1)
74return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeParameterCollection.cs (1)
46return List.Add(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceCollection.cs (1)
74return List.Add(value);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (1)
707extList.Add(schema);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectCollection.cs (1)
65return List.Add(item);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (2)
104clone.List.Add(o); 126return List.Add(extension);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlAnyElementAttributes.cs (1)
34return List.Add(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlArrayItemAttributes.cs (1)
34return List.Add(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlElementAttributes.cs (1)
34return List.Add(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (2)
143return List.Add(schema); 156return List.Add(schema);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathArrayIterator.cs (1)
36this.list.Add(nodeIterator.Current.Clone());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
341((IList)collection).Add(newCodeTypeDeclaration);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
618handle = ((IList)_mappings).Add(mapping);
FrameworkFork\System.Web.Services\Services\Description\MimeFormatExtensions.cs (2)
97return List.Add(mimePart); 264return List.Add(match);
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (13)
1585return List.Add(extension); 1881return List.Add(operationMessage); 2073return List.Add(import); 2155return List.Add(message); 2255return List.Add(port); 2355return List.Add(portType); 2455return List.Add(binding); 2555return List.Add(service); 2655return List.Add(messagePart); 2755return List.Add(bindingOperation); 2837return List.Add(bindingOperationFault); 2937return List.Add(operation); 3019return List.Add(operationFaultMessage);
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptions.cs (1)
47return List.Add(serviceDescription);
GenerateDocumentationAndConfigFiles (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Metrics (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Metrics.Legacy (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Internal\Json\FieldMaskConverter.cs (1)
34messagePaths.Add(Legacy.ToSnakeCase(path));
Internal\Json\JsonConverterHelper.cs (1)
158existingValue.Add(item);
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (3)
274list.Add(ConvertValue(value, field)); 285list.Add(v); 290list.Add(ConvertValue(values, field));
Microsoft.AspNetCore.Grpc.Swagger (3)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (3)
274list.Add(ConvertValue(value, field)); 285list.Add(v); 290list.Add(ConvertValue(values, field));
Microsoft.AspNetCore.JsonPatch (1)
Internal\ListAdapter.cs (1)
46list.Add(convertedValue);
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Helpers\GenericListOrJsonArrayUtilities.cs (1)
94nonGenericList.Add(value);
Microsoft.Build.Framework (2)
IListCalls.cs (1)
39return list.Add(value);
ImmutableSegmentedList`1+ValueBuilder.cs (1)
340=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.Analyzers (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.Collections.Package (2)
Internal\IListCalls.cs (1)
41return list.Add(value);
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.Extensions.Package (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.Threading.Package (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.UnitTests (29)
Collections\ImmutableSegmentedListBuilderTest.cs (2)
315Assert.Equal(0, list.Add(5)); 316Assert.Equal(1, list.Add(8));
Collections\ImmutableSegmentedListTest.cs (1)
748Assert.Throws<NotSupportedException>(() => list.Add(1));
Collections\List\IList.NonGeneric.Tests.cs (25)
53collection.Add(toAdd); 115casted.Add(CreateT(2344)); 380collection.Add(null); 394collection.Add(invalidValue); 396collection.Add(CreateT(i)); 411collection.Add(invalidValue); 413collection.Add(CreateT(i)); 428collection.Add(invalidValue); 444collection.Add(duplicateValue); 445collection.Add(duplicateValue); 477collection.Add(toAdd); 484collection.Add(toAdd); 499collection.Add(CreateT(254)); 511Assert.Throws<NotSupportedException>(() => collection.Add(CreateT(0))); 527collection.Add(toAdd); 529collection.Add(toAdd); 595collection.Add(null); 608collection.Add(item); 609collection.Add(item); 717list.Add(duplicate); 928collection.Add(value); 947collection.Add(value); 964collection.Add(value); 965collection.Add(value); 1108collection.Add(CreateT(seed++));
Collections\SegmentedArrayTests.cs (1)
76Assert.Throws<NotSupportedException>(() => ((IList)data).Add(IntPtr.Zero));
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Microsoft.Maui.Controls (2)
BindableLayout\BindableLayout.cs (1)
148 _ = layout.Children.Add(item);
Shell\ShellElementCollection.cs (1)
125 public virtual void Add(BaseShellItem item) => Inner.Add(item);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
666Private Function IListAdd(ByVal value As Object) As Integer Implements IList.Add
PresentationCore (1)
System\Windows\Input\InputScopeConverter.cs (1)
123inputScope.Names.Add(new InputScopeName(sn));
PresentationFramework (16)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
308this.OwningDataGrid.SelectedItems.Add(item);
System\Windows\Controls\ColumnDefinition.cs (1)
119/// <see cref="IList.Add"/>
System\Windows\Controls\ItemCollection.cs (1)
2247clone.Add(master[i]);
System\Windows\Controls\Primitives\Selector.cs (1)
1684userSelectedItems.Add(toAdd[i].Item);
System\Windows\Controls\RowDefinition.cs (1)
114/// <see cref="IList.Add"/>
System\Windows\Data\ListCollectionView.cs (2)
752int index = SourceList.Add(newItem); 2576localList.Add(item);
System\Windows\Documents\LinkTarget.cs (1)
71return ((IList)this).Add((object)value);
System\Windows\Documents\TableCellCollection.cs (1)
274return ((IList)_cellCollectionInternal).Add(value);
System\Windows\Documents\TableColumnCollection.cs (1)
281return ((IList)_columnCollection).Add(value);
System\Windows\Documents\TableRowCollection.cs (1)
274return ((IList)_rowCollectionInternal).Add(value);
System\Windows\Documents\TableRowGroupCollection.cs (1)
274return ((IList)_rowGroupCollectionInternal).Add(value);
System\Windows\Markup\BamlRecordReader.cs (3)
3565holder.List.Add(bamlTextRecord.Value); 4650list.Add(currentObject); 4897contentList.Add(value);
System\Windows\TriggerActionCollection.cs (1)
191int index = ((IList) _rawList).Add(VerifyIsTriggerAction(value));
Roslyn.Diagnostics.Analyzers (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
System.CodeDom (14)
src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (1)
36public int Add(CodeTypeReference value) => List.Add(value);
System\CodeDom\CodeAttributeArgumentCollection.cs (1)
28public int Add(CodeAttributeArgument value) => List.Add(value);
System\CodeDom\CodeAttributeDeclarationCollection.cs (1)
30public int Add(CodeAttributeDeclaration value) => List.Add(value);
System\CodeDom\CodeCatchClauseCollection.cs (1)
28public int Add(CodeCatchClause value) => List.Add(value);
System\CodeDom\CodeCommentStatementCollection.cs (1)
28public int Add(CodeCommentStatement value) => List.Add(value);
System\CodeDom\CodeDirectiveCollection.cs (1)
28public int Add(CodeDirective value) => List.Add(value);
System\CodeDom\CodeExpressionCollection.cs (1)
28public int Add(CodeExpression value) => List.Add(value);
System\CodeDom\CodeNamespaceCollection.cs (1)
28public int Add(CodeNamespace value) => List.Add(value);
System\CodeDom\CodeParameterDeclarationExpressionCollection.cs (1)
28public int Add(CodeParameterDeclarationExpression value) => List.Add(value);
System\CodeDom\CodeStatementCollection.cs (1)
28public int Add(CodeStatement value) => List.Add(value);
System\CodeDom\CodeTypeDeclarationCollection.cs (1)
28public int Add(CodeTypeDeclaration value) => List.Add(value);
System\CodeDom\CodeTypeMemberCollection.cs (1)
28public int Add(CodeTypeMember value) => List.Add(value);
System\CodeDom\CodeTypeParameterCollection.cs (1)
28public int Add(CodeTypeParameter value) => List.Add(value);
System\CodeDom\Compiler\CompilerErrorCollection.cs (1)
28public int Add(CompilerError value) => List.Add(value);
System.ComponentModel.Composition (1)
Microsoft\Internal\Collections\CollectionServices.CollectionOfObject.cs (1)
48_list.Add(item);
System.ComponentModel.TypeConverter (10)
System\ComponentModel\Design\DesignerVerbCollection.cs (1)
22public int Add(DesignerVerb? value) => List.Add(value);
System\ComponentModel\MemberDescriptor.cs (1)
318attributeList.Add(attr);
System\ComponentModel\ReflectEventDescriptor.cs (2)
303attributes.Add(attr); 426attributes.Add(attr);
System\ComponentModel\ReflectPropertyDescriptor.cs (4)
778attributes.Add(typeAttr); 862attributes.Add(stAttr); 879attributes.Add(attr); 892attributes.Add(ReadOnlyAttribute.Yes);
System\ComponentModel\TypeDescriptor.cs (2)
454associations.Add(new WeakReference(secondary)); 2082list.Add(obj);
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationElement.cs (1)
496foreach (InvalidPropValue invalidValue in Values.InvalidValues) errorList.Add(invalidValue.Error);
System.Data.Common (3)
System\Data\Common\DbParameterCollection.cs (3)
63/// For a description of this member, see <see cref="IList.Add" />. 65/// <param name="value">For a description of this member, see <see cref="IList.Add" />.</param> 66/// <returns>For a description of this member, see <see cref="IList.Add" />.</returns>
System.Diagnostics.TraceSource (2)
System\Diagnostics\TraceListeners.cs (2)
79return ((IList)_list).Add(listener); 256return ((IList)_list).Add(value);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (2)
749int i = _list.Add(obj); 1518return _list.Add(value);
System.Private.DataContractSerialization (2)
src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (1)
36public int Add(CodeTypeReference value) => List.Add(value);
System\Runtime\Serialization\ReflectionReader.cs (1)
599((IList)resultCollection).Add(collectionItem);
System.Private.Xml (10)
System\Xml\Schema\XmlSchema.cs (1)
534extList.Add(schema);
System\Xml\Schema\XmlSchemaObjectCollection.cs (1)
36return List.Add(item);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
577targetList.Add(item);
System\Xml\Serialization\XmlAnyElementAttributes.cs (1)
30return List.Add(attribute);
System\Xml\Serialization\XmlArrayItemAttributes.cs (1)
30return List.Add(attribute);
System\Xml\Serialization\XmlElementAttributes.cs (1)
30return List.Add(attribute);
System\Xml\Serialization\XmlSchemas.cs (2)
95return List.Add(schema); 104return List.Add(schema);
System\Xml\XPath\Internal\XPathArrayIterator.cs (1)
36this.list.Add(nodeIterator.Current.Clone());
System\Xml\Xsl\Xslt\CompilerError.cs (1)
36public int Add(CompilerError value) => List.Add(value);
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
296((IList)collection).Add(newCodeTypeDeclaration);
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\Signature.cs (2)
203_embeddedObjects.Add(dataObj); 227_embeddedObjects.Add(dataObject);
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (1)
21collection.Add(value);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2310items.Add(CreateClone(subObj));
System.Windows.Forms (20)
System\Windows\Forms\AutoCompleteStringCollection.cs (1)
71int index = ((IList)_data).Add(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
175int index = ((IList)_items).Add(dataGridViewCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (1)
60int index = ((IList)InnerArray).Add(item);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (1)
93return ((IList)_items).Add(dataGridViewCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (1)
74internal int Add(DataGridViewColumn dataGridViewColumn) => ((IList)_items).Add(dataGridViewColumn);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (1)
63internal int Add(DataGridViewRow dataGridViewRow) => ((IList)_items).Add(dataGridViewRow);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
316index = ((IList)_owner._originals).Add(original); 333index = ((IList)_owner._originals).Add(original);
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
124int index = ((IList)List).Add(group);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
295properties.Add(value);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
105int retVal = ((IList)InnerList).Add(value);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (1)
43int retVal = ((IList)InnerList).Add(value);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (1)
81int index = ((IList)InnerList).Add(control.ToolStripPanelCell);
System\Windows\Forms\DataBinding\BindingSource.cs (3)
691list.Add(item); 1221list.Add(obj); 1482position = List.Add(value);
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
132int IList.Add(object? value) => ((IList)InnerList).Add(value);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutColumnStyleCollection.cs (1)
19public int Add(ColumnStyle columnStyle) => ((IList)this).Add(columnStyle);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutRowStyleCollection.cs (1)
19public int Add(RowStyle rowStyle) => ((IList)this).Add(rowStyle);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
38int index = ((IList)_innerList).Add(tableLayoutStyle);
System.Windows.Forms.Design (23)
System\ComponentModel\Design\CollectionEditor.cs (1)
394list.Add(value[i]);
System\ComponentModel\Design\DataSourceDescriptorCollection.cs (1)
14public int Add(DataSourceDescriptor value) => List.Add(value);
System\ComponentModel\Design\DataSourceGroupCollection.cs (1)
14public int Add(DataSourceGroup value) => List.Add(value);
System\ComponentModel\Design\DesignerActionItemCollection.cs (1)
16public int Add(DesignerActionItem value) => List.Add(value);
System\ComponentModel\Design\DesignerActionListCollection.cs (1)
25public int Add(DesignerActionList? value) => List.Add(value);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
182attributeList.Add(attr);
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (3)
316_serializationManager.Errors.Add(ex); 654_serializationManager!.Errors!.Add(err); 947_serializationManager!.Errors.Add(err);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
475shimObjectNames.Add(name);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
901Errors.Add(errorInformation);
System\Windows\Forms\Design\Behavior\AdornerCollection.cs (1)
81return List.Add(value);
System\Windows\Forms\Design\Behavior\GlyphCollection.cs (1)
51return List.Add(value);
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
32int IList.Add(object control) => ((IList)_realCollection).Add(control);
System\Windows\Forms\Design\CustomMenuItemCollection.cs (1)
25return List.Add(value);
System\Windows\Forms\Design\DataSourceDescriptorCollection.cs (1)
16return List.Add(value);
System\Windows\Forms\Design\DataSourceGroupCollection.cs (1)
16return List.Add(value);
System\Windows\Forms\Design\ListAdapter.cs (1)
30void ICollection<T>.Add(T item) => _list.Add(item.OrThrowIfNull());
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (2)
107list.Add(_firstSubItem); 111list.Add(value[i]);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2163int IList.Add(object control) => ((IList)_realCollection).Add(control);
System\Windows\Forms\Design\TabOrder.cs (1)
427tabs.Add(ctlTab);
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
1044List.Add(new EditorItem(item));
System.Windows.Forms.Design.Tests (7)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (7)
61((IList)_collection).Add(control); 79((IList)_collection).Add(control); 106((IList)_collection).Add(control); 115((IList)_collection).Add(anotherControl); 116((IList)_collection).Add(control); 125((IList)_collection).Add(control); 134((IList)_collection).Add(control);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
87int index = ((IList)_list).Add(value ?? ThrowArgumentNull(nameof(value)));
System.Windows.Forms.Primitives.Tests (2)
System\Windows\Forms\NonNullCollectionTests.cs (2)
43Assert.Throws<ArgumentNullException>("value", () => ((IList)collection).Add(null)); 51((IList)collection).Add(item);
System.Windows.Forms.Tests (414)
System\Windows\Forms\AutoCompleteStringCollectionTests.cs (6)
79collection.Add(s); 119collection.Add(s); 175collection.Add("value2"); 228collection.Add("value"); 244collection.Add(value); 342collection.Add("2");
System\Windows\Forms\BindingSourceTests.cs (1)
784public int Add(object item) => ((IList)_innerList).Add(item);
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (1)
49((IList)_collection).Invoking(c => c.Add(1)).Should().Throw<NotSupportedException>();
System\Windows\Forms\CheckedListBox.CheckedItemCollectionTests.cs (1)
43((IList)_collection).Invoking(c => c.Add(1)).Should().Throw<NotSupportedException>();
System\Windows\Forms\ColumnHeaderCollectionTests.cs (8)
71collection.Add(header); 352Assert.Throws<ArgumentException>("value", () => collection.Add(value)); 599collection.Add(header); 684collection.Add(header); 842collection.Add(new ColumnHeader()); 902collection.Add(header); 926collection.Add(header); 1102collection.Add(header);
System\Windows\Forms\ControlTests.ControlCollection.cs (5)
3456Assert.Equal(0, collection.Add(control1)); 3468Assert.Equal(1, collection.Add(control2)); 3484Assert.Equal(1, collection.Add(control1)); 3509Assert.Throws<ArgumentException>("control", () => collection.Add(new object())); 3510Assert.Throws<ArgumentException>("control", () => collection.Add(null));
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (1)
299Assert.Throws<NotSupportedException>(() => iList.Add(value));
System\Windows\Forms\DataGridViewSelectedColumnCollectionTests.cs (1)
331Assert.Throws<NotSupportedException>(() => iList.Add(value));
System\Windows\Forms\DataGridViewSelectedRowCollectionTests.cs (1)
291Assert.Throws<NotSupportedException>(() => iList.Add(value));
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (46)
1590collection.Add(2); 1591collection.Add(1); 1592collection.Add(1); 1593collection.Add(3); 1666collection.Add(2); 1667collection.Add(1); 1668collection.Add(1); 1669collection.Add(3); 1760Assert.Equal(0, collection.Add(2)); 1767Assert.Equal(0, collection.Add(1)); 1774Assert.Equal(0, collection.Add(1)); 1781Assert.Equal(2, collection.Add(3)); 1803Assert.Equal(0, collection.Add(2)); 1810Assert.Equal(0, collection.Add(1)); 1817Assert.Equal(0, collection.Add(1)); 1824Assert.Equal(2, collection.Add(3)); 1853Assert.Equal(0, collection.Add(2)); 1863Assert.Equal(0, collection.Add(1)); 1873Assert.Equal(0, collection.Add(1)); 1883Assert.Equal(2, collection.Add(3)); 1915Assert.Equal(0, collection.Add(2)); 1925Assert.Equal(0, collection.Add(1)); 1935Assert.Equal(0, collection.Add(1)); 1945Assert.Equal(2, collection.Add(3)); 1962Assert.Throws<ArgumentException>(() => collection.Add(item)); 1994collection.Add(0); 2075collection.Add(1); 2175collection.Add(1); 2211collection.Add(1); 2316collection.Add(0); 2387collection.Add(2); 2388collection.Add(1); 2389collection.Add(1); 2390collection.Add(3); 2502collection.Add(2); 2503collection.Add(1); 2504collection.Add(1); 2505collection.Add(3); 2620collection.Add(2); 2621collection.Add(1); 2622collection.Add(1); 2623collection.Add(3); 2718collection.Add(2); 2719collection.Add(1); 2720collection.Add(1); 2721collection.Add(3);
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (268)
7037collection.Add(2); 7038collection.Add(1); 7039collection.Add(3); 7080collection.Add(2); 7081collection.Add(1); 7082collection.Add(3); 7301collection.Add(2); 7302collection.Add(1); 7303collection.Add(3); 7392collection.Add(2); 7393collection.Add(1); 7394collection.Add(3); 7480collection.Add(0); 7481collection.Add(1); 7482collection.Add(3); 7483collection.Add(4); 7529collection.Add(0); 7530collection.Add(1); 7531collection.Add(3); 7532collection.Add(4); 7580collection.Add(0); 7581collection.Add(1); 7582collection.Add(3); 7583collection.Add(4); 7584collection.Add(5); 7650collection.Add(0); 7651collection.Add(1); 7652collection.Add(3); 7653collection.Add(4); 7654collection.Add(5); 7714collection.Add(0); 7715collection.Add(1); 7716collection.Add(3); 7717collection.Add(4); 7787collection.Add(0); 7788collection.Add(1); 7789collection.Add(3); 7790collection.Add(4); 7862collection.Add(0); 7863collection.Add(1); 7864collection.Add(3); 7865collection.Add(4); 7866collection.Add(5); 7962collection.Add(0); 7963collection.Add(1); 7964collection.Add(3); 7965collection.Add(4); 7966collection.Add(5); 8112Assert.Equal(0, collection.Add(2)); 8120Assert.Equal(1, collection.Add(1)); 8128Assert.Equal(2, collection.Add(1)); 8136Assert.Equal(3, collection.Add(3)); 8153Assert.Equal(0, collection.Add(2)); 8161Assert.Equal(1, collection.Add(1)); 8169Assert.Equal(2, collection.Add(1)); 8177Assert.Equal(3, collection.Add(3)); 8197Assert.Equal(0, collection.Add(2)); 8205Assert.Equal(0, collection.Add(1)); 8213Assert.Equal(0, collection.Add(1)); 8221Assert.Equal(3, collection.Add(3)); 8241Assert.Equal(0, collection.Add(2)); 8249Assert.Equal(0, collection.Add(1)); 8257Assert.Equal(0, collection.Add(1)); 8265Assert.Equal(3, collection.Add(3)); 8288Assert.Equal(0, collection.Add(2)); 8301Assert.Equal(1, collection.Add(1)); 8316Assert.Equal(2, collection.Add(1)); 8333Assert.Equal(3, collection.Add(3)); 8367Assert.Equal(0, collection.Add(2)); 8380Assert.Equal(1, collection.Add(1)); 8395Assert.Equal(2, collection.Add(1)); 8412Assert.Equal(3, collection.Add(3)); 8449Assert.Equal(0, collection.Add(2)); 8462Assert.Equal(0, collection.Add(1)); 8477Assert.Equal(0, collection.Add(1)); 8494Assert.Equal(3, collection.Add(3)); 8531Assert.Equal(0, collection.Add(2)); 8544Assert.Equal(0, collection.Add(1)); 8559Assert.Equal(0, collection.Add(1)); 8576Assert.Equal(3, collection.Add(3)); 8600collection.Add(1); 8601collection.Add(3); 8602collection.Add(4); 8608collection.Add(0); 8616collection.Add(5); 8632collection.Add(1); 8633collection.Add(3); 8634collection.Add(4); 8640collection.Add(0); 8648collection.Add(5); 8666collection.Add(1); 8667collection.Add(3); 8668collection.Add(4); 8669collection.Add(5); 8676collection.Add(0); 8684collection.Add(2); 8692collection.Add(4); 8711collection.Add(1); 8712collection.Add(3); 8713collection.Add(4); 8720collection.Add(0); 8727collection.Add(2); 8734collection.Add(5); 8746collection.Add(1); 8747collection.Add(3); 8748collection.Add(4); 8761collection.Add(0); 8772collection.Add(5); 8791collection.Add(1); 8792collection.Add(3); 8793collection.Add(4); 8806collection.Add(0); 8817collection.Add(5); 8838collection.Add(1); 8839collection.Add(3); 8840collection.Add(4); 8841collection.Add(5); 8855collection.Add(0); 8866collection.Add(2); 8877collection.Add(4); 8899collection.Add(1); 8900collection.Add(3); 8901collection.Add(4); 8915collection.Add(0); 8926collection.Add(2); 8937collection.Add(5); 8969collection.Add(2); 8970collection.Add(1); 8971collection.Add(1); 8972collection.Add(3); 8991Assert.Throws<ArgumentNullException>("item", () => collection.Add(null)); 9002Assert.Throws<ArgumentException>(() => collection.Add(1)); 9019Assert.Throws<OutOfMemoryException>(() => collection.Add(1)); 9094collection.Add(1); 9198collection.Add(1); 9236collection.Add(1); 9289collection.Add(0); 9427collection.Add(0); 9940collection.Add(1); 9941collection.Add(3); 9942collection.Add(4); 9972collection.Add(1); 9973collection.Add(3); 9974collection.Add(4); 10000collection.Add(1); 10001collection.Add(3); 10002collection.Add(4); 10003collection.Add(5); 10045collection.Add(1); 10046collection.Add(3); 10047collection.Add(4); 10078collection.Add(1); 10079collection.Add(3); 10080collection.Add(4); 10123collection.Add(1); 10124collection.Add(3); 10125collection.Add(4); 10170collection.Add(1); 10171collection.Add(3); 10172collection.Add(4); 10173collection.Add(5); 10231collection.Add(1); 10232collection.Add(3); 10233collection.Add(4); 10428collection.Add(2); 10429collection.Add(1); 10430collection.Add(3); 10521collection.Add(2); 10522collection.Add(1); 10523collection.Add(3); 10569collection.Add(2); 10570collection.Add(1); 10571collection.Add(3); 10641collection.Add(2); 10642collection.Add(1); 10643collection.Add(3); 10721collection.Add(2); 10722collection.Add(1); 10723collection.Add(3); 10796collection.Add(2); 10797collection.Add(1); 10798collection.Add(3); 10866collection.Add(0); 10867collection.Add(1); 10868collection.Add(3); 10869collection.Add(4); 10907collection.Add(0); 10908collection.Add(1); 10909collection.Add(3); 10910collection.Add(4); 10950collection.Add(0); 10951collection.Add(1); 10952collection.Add(3); 10953collection.Add(4); 10954collection.Add(5); 11003collection.Add(0); 11004collection.Add(1); 11005collection.Add(3); 11006collection.Add(4); 11049collection.Add(0); 11050collection.Add(1); 11051collection.Add(3); 11052collection.Add(4); 11111collection.Add(0); 11112collection.Add(1); 11113collection.Add(3); 11114collection.Add(4); 11175collection.Add(0); 11176collection.Add(1); 11177collection.Add(3); 11178collection.Add(4); 11179collection.Add(5); 11244collection.Add(0); 11245collection.Add(1); 11246collection.Add(3); 11247collection.Add(4); 11367collection.Add(2); 11368collection.Add(1); 11369collection.Add(3); 11445collection.Add(2); 11446collection.Add(1); 11447collection.Add(3); 11486collection.Add(2); 11487collection.Add(1); 11488collection.Add(3); 11543collection.Add(2); 11544collection.Add(1); 11545collection.Add(3); 11607collection.Add(2); 11608collection.Add(1); 11609collection.Add(3); 11667collection.Add(2); 11668collection.Add(1); 11669collection.Add(3); 11721collection.Add(0); 11722collection.Add(1); 11723collection.Add(3); 11724collection.Add(4); 11762collection.Add(0); 11763collection.Add(1); 11764collection.Add(3); 11765collection.Add(4); 11805collection.Add(0); 11806collection.Add(1); 11807collection.Add(3); 11808collection.Add(4); 11809collection.Add(5); 11858collection.Add(0); 11859collection.Add(1); 11860collection.Add(3); 11861collection.Add(4); 11904collection.Add(0); 11905collection.Add(1); 11906collection.Add(3); 11907collection.Add(4); 11966collection.Add(0); 11967collection.Add(1); 11968collection.Add(3); 11969collection.Add(4); 12030collection.Add(0); 12031collection.Add(1); 12032collection.Add(3); 12033collection.Add(4); 12034collection.Add(5); 12099collection.Add(0); 12100collection.Add(1); 12101collection.Add(3); 12102collection.Add(4);
System\Windows\Forms\ListBox.SelectedIndexCollectionTests.cs (1)
73Assert.Throws<NotSupportedException>(() => collection.Add(value));
System\Windows\Forms\ListBox.SelectedObjectCollectionTests.cs (1)
64=> Assert.Throws<NotSupportedException>(() => ((IList)_collection).Add(value));
System\Windows\Forms\ListView.CheckedIndexCollectionTests.cs (1)
163"Add" => () => ilist.Add(0),
System\Windows\Forms\ListViewGroupCollectionTests.cs (15)
198collection.Add(group); 209collection.Add(new ListViewGroup()); 218collection.Add(new ListViewGroup()); 233collection.Add(group1); 234collection.Add(group2); 247collection.Add(new ListViewGroup()); 522collection.Add(group); 534Assert.Throws<ArgumentException>("value", () => collection.Add(value)); 671collection.Add(group); 719collection.Add(group); 885collection.Add(new ListViewGroup()); 920collection.Add(group); 944collection.Add(group); 966collection.Add(group); 986collection.Add(group);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (10)
109collection.Add(subItem); 295collection.Add(subItem); 307Assert.Throws<ArgumentException>("item", () => collection.Add(value)); 514collection.Add(subItem); 599collection.Add(subItem); 673collection.Add(new ListViewItem.ListViewSubItem()); 728collection.Add(subItem); 748collection.Add(subItem); 860collection.Add(subItem); 979((IList)listViewItem.SubItems).Add(subItem);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (35)
1002iList.Add(value1); 1020iList.Add(value2); 1048iList.Add(value1); 1096Assert.Throws<ArgumentException>(() => iList.Add(value)); 1207iList.Add(child1); 1208iList.Add(child2); 1222iList.Add(child); 1234iList.Add(child); 1274iList.Add(child1); 1275iList.Add(child2); 1290iList.Add(child1); 1291iList.Add(child2); 1584iList.Add(child1); 1585iList.Add(child2); 1889iList.Add(child1); 1890iList.Add(child2); 3724iList.Add(page1); 3725iList.Add(page2); 3752iList.Add(page); 3768iList.Add(page1); 3769iList.Add(page2); 3770iList.Add(page3); 3812iList.Add(page1); 3813iList.Add(page2); 3814iList.Add(page3); 3843iList.Add(page1); 3844iList.Add(page2); 3845iList.Add(page3); 3898iList.Add(page1); 3899iList.Add(page2); 3900iList.Add(page3); 3943iList.Add(page); 3971iList.Add(page1); 4707iList.Add(value1); 4708iList.Add(value2);
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (12)
45collection.Add(style); 56Assert.Throws<ArgumentNullException>("style", () => ((IList)collection).Add(null)); 65Assert.Throws<InvalidCastException>(() => collection.Add(new object())); 77Assert.Throws<ArgumentException>("style", () => ((IList)collection).Add(style)); 143collection.Add(new RowStyle()); 170collection.Add(new RowStyle()); 193collection.Add(style); 197collection.Add(style); 208collection.Add(style); 262collection.Add(style); 276collection.Add(style); 290collection.Add(style);
System.Xaml (2)
System\Xaml\Schema\XamlTypeInvoker.cs (1)
62list.Add(item);
System\Xaml\XamlObjectReader.cs (1)
1670constructorArguments.Add(context.Runtime.GetValue(value, matchingProperty));
Test.Utilities (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);
Text.Analyzers (2)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
41return list.Add(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
342=> ((IList)GetOrCreateMutableList()).Add(value);