10 references to ThrowIfNullOrEmptyWithMessage
System.Windows.Forms (4)
System\Windows\Forms\Control.ControlCollection.cs (1)
174
key.
ThrowIfNullOrEmptyWithMessage
(SR.FindKeyMayNotBeEmptyOrNull);
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (1)
267
key.
ThrowIfNullOrEmptyWithMessage
(SR.FindKeyMayNotBeEmptyOrNull);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
244
key.
ThrowIfNullOrEmptyWithMessage
(SR.FindKeyMayNotBeEmptyOrNull);
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
242
key.
ThrowIfNullOrEmptyWithMessage
(SR.FindKeyMayNotBeEmptyOrNull);
System.Windows.Forms.Primitives.Tests (6)
System\Windows\Forms\Internals\ArgumentValidationTests.cs (6)
161
param.
ThrowIfNullOrEmptyWithMessage
("message");
169
var exception = Assert.Throws<ArgumentNullException>(() => param.
ThrowIfNullOrEmptyWithMessage
(message));
179
var exception = Assert.Throws<ArgumentNullException>(() => param.
ThrowIfNullOrEmptyWithMessage
(message));
188
param.
ThrowIfNullOrEmptyWithMessage
("message", "paramName");
196
var exception = Assert.Throws<ArgumentNullException>(() => param.
ThrowIfNullOrEmptyWithMessage
(message, "paramName"));
206
var exception = Assert.Throws<ArgumentNullException>(() => param.
ThrowIfNullOrEmptyWithMessage
(message, "paramName"));