10 references to SetItemInternal
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3036Items.SetItemInternal(index, Items[index]!); 3312Items.SetItemInternal(index, value);
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
226SetItemInternal(index, value!);
System.Windows.Forms.Tests (7)
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (7)
1094comboBoxObjectCollection.SetItemInternal(0, "c"); 1095comboBoxObjectCollection.SetItemInternal(1, "b"); 1119comboBoxObjectCollection.SetItemInternal(0, person3); 1120comboBoxObjectCollection.SetItemInternal(1, "Name 4"); 1143Assert.Throws<ArgumentNullException>("value", () => comboBoxObjectCollection.SetItemInternal(0, null)); 1160Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection.SetItemInternal(-1, 1)); 1177Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection.SetItemInternal(3, 1));