1 write to DesiredType
System.Windows.Forms (1)
System\Windows\Forms\ConvertEventArgs.cs (1)
11
DesiredType
= desiredType;
12 references to DesiredType
System.Windows.Forms (6)
System\Windows\Forms\DataBinding\Binding.cs (6)
653
if (!(cevent.Value is DBNull) && cevent.Value is not null && cevent.
DesiredType
is not null && !cevent.
DesiredType
.IsInstanceOfType(cevent.Value) && (cevent.Value is IConvertible))
655
cevent.Value = Convert.ChangeType(cevent.Value, cevent.
DesiredType
, CultureInfo.CurrentCulture);
666
if (!(cevent.Value is DBNull) && cevent.
DesiredType
is not null && !cevent.
DesiredType
.IsInstanceOfType(cevent.Value) && (cevent.Value is IConvertible))
668
cevent.Value = Convert.ChangeType(cevent.Value, cevent.
DesiredType
, CultureInfo.CurrentCulture);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ConvertEventArgsTests.cs (1)
16
Assert.Equal(desiredType, e.
DesiredType
);
System\Windows\Forms\DataGridViewCellFormattingEventArgsTests.cs (1)
24
Assert.Equal(desiredType, e.
DesiredType
);
System\Windows\Forms\DataGridViewCellParsingEventArgsTests.cs (1)
25
Assert.Equal(desiredType, e.
DesiredType
);
System\Windows\Forms\ListControlConvertEventArgsTests.cs (1)
16
Assert.Equal(desiredType, e.
DesiredType
);
System\Windows\Forms\ListControlTests.cs (2)
2411
Assert.Equal(typeof(string), e.
DesiredType
);
2453
Assert.Equal(typeof(string), e.
DesiredType
);