10 references to AddRange
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
992_children.AddRange(childProperties);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
134ChildCollection.AddRange(mergedProperties);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
71ChildCollection.AddRange(mergedProperties);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3576_allGridEntries.AddRange(entries);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
277ChildCollection.AddRange(categoryGridEntries);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
20public NonNullCollection(IEnumerable<T> items) => AddRange(items);
System.Windows.Forms.Primitives.Tests (4)
System\Windows\Forms\NonNullCollectionTests.cs (4)
128Assert.Throws<ArgumentNullException>("items", () => collection.AddRange(null!)); 135Assert.Throws<ArgumentNullException>("items", () => collection.AddRange(new object[] { null! })); 143collection.AddRange(new object[] { item }); 147collection.AddRange(new object[] { new(), new(), new() });