41 references to AddRange
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
36AddRange(value);
System.Windows.Forms.Tests (40)
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (40)
2880collection.AddRange(otherCollection); 2890collection.AddRange(emptyCollection); 2909collection.AddRange(otherCollection); 2919collection.AddRange(emptyCollection); 2941collection.AddRange(otherCollection); 2951collection.AddRange(emptyCollection); 2973collection.AddRange(otherCollection); 2983collection.AddRange(emptyCollection); 3008collection.AddRange(otherCollection); 3029collection.AddRange(emptyCollection); 3065collection.AddRange(otherCollection); 3086collection.AddRange(emptyCollection); 3125collection.AddRange(otherCollection); 3146collection.AddRange(emptyCollection); 3185collection.AddRange(otherCollection); 3206collection.AddRange(emptyCollection); 3240collection.AddRange(otherCollection); 3250collection.AddRange(emptyCollection); 3276collection.AddRange(otherCollection); 3286collection.AddRange(emptyCollection); 3316collection.AddRange(otherCollection); 3326collection.AddRange(emptyCollection); 3356collection.AddRange(otherCollection); 3365collection.AddRange(emptyCollection); 3394collection.AddRange(otherCollection); 3407collection.AddRange(emptyCollection); 3443collection.AddRange(otherCollection); 3456collection.AddRange(emptyCollection); 3496collection.AddRange(otherCollection); 3509collection.AddRange(emptyCollection); 3549collection.AddRange(otherCollection); 3562collection.AddRange(emptyCollection); 3581collection.AddRange(otherCollection); 3595collection.AddRange(otherCollection); 3614collection.AddRange(collection); 3626Assert.Throws<InvalidOperationException>(() => collection.AddRange(collection)); 3639Assert.Throws<InvalidOperationException>(() => collection.AddRange(collection)); 3649Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((ListBox.ObjectCollection)null)); 3671Assert.Throws<ArgumentException>(() => collection.AddRange(otherCollection)); 3695Assert.Throws<OutOfMemoryException>(() => collection.AddRange(otherCollection));