18 references to new
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellFormattingEventArgs.cs (1)
14
:
base
(value, desiredType)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellParsingEventArgs.cs (1)
14
:
base
(value, desiredType)
System\Windows\Forms\Controls\ListControl\ListControlConvertEventArgs.cs (1)
9
:
base
(value, desiredType)
System\Windows\Forms\DataBinding\Binding.cs (4)
680
ConvertEventArgs e =
new
(value, type);
711
ConvertEventArgs e =
new
(value, type);
755
ConvertEventArgs e =
new
(value, type);
778
ConvertEventArgs e =
new
(value, type);
System.Windows.Forms.Tests (11)
System\Windows\Forms\BindingTests.cs (9)
441
yield return new object[] { false, new
ConvertEventArgs
(null, typeof(int)), null };
442
yield return new object[] { false, new
ConvertEventArgs
("1", null), "1" };
443
yield return new object[] { false, new
ConvertEventArgs
("1", typeof(string)), "1" };
444
yield return new object[] { false, new
ConvertEventArgs
("1", typeof(int)), 1 };
445
yield return new object[] { false, new
ConvertEventArgs
(1.1.ToString(CultureInfo.CurrentCulture), typeof(double)), 1.1 };
446
yield return new object[] { false, new
ConvertEventArgs
(DBNull.Value, typeof(int)), DBNull.Value };
449
yield return new object[] { false, new
ConvertEventArgs
(o, typeof(object)), o };
450
yield return new object[] { false, new
ConvertEventArgs
(o, typeof(int)), o };
453
yield return new object[] { true, new
ConvertEventArgs
("1", typeof(int)), "1" };
System\Windows\Forms\ConvertEventArgsTests.cs (2)
14
ConvertEventArgs e =
new
(value, desiredType);
24
ConvertEventArgs e =
new
("value", typeof(int))