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)
680ConvertEventArgs e = new(value, type); 711ConvertEventArgs e = new(value, type); 755ConvertEventArgs e = new(value, type); 778ConvertEventArgs e = new(value, type);
System.Windows.Forms.Tests (11)
System\Windows\Forms\BindingTests.cs (9)
441yield return new object[] { false, new ConvertEventArgs(null, typeof(int)), null }; 442yield return new object[] { false, new ConvertEventArgs("1", null), "1" }; 443yield return new object[] { false, new ConvertEventArgs("1", typeof(string)), "1" }; 444yield return new object[] { false, new ConvertEventArgs("1", typeof(int)), 1 }; 445yield return new object[] { false, new ConvertEventArgs(1.1.ToString(CultureInfo.CurrentCulture), typeof(double)), 1.1 }; 446yield return new object[] { false, new ConvertEventArgs(DBNull.Value, typeof(int)), DBNull.Value }; 449yield return new object[] { false, new ConvertEventArgs(o, typeof(object)), o }; 450yield return new object[] { false, new ConvertEventArgs(o, typeof(int)), o }; 453yield return new object[] { true, new ConvertEventArgs("1", typeof(int)), "1" };
System\Windows\Forms\ConvertEventArgsTests.cs (2)
14ConvertEventArgs e = new(value, desiredType); 24ConvertEventArgs e = new("value", typeof(int))