10 writes to Value
System.Windows.Forms (3)
System\Windows\Forms\ConvertEventArgs.cs (1)
10
Value
= value;
System\Windows\Forms\DataBinding\Binding.cs (2)
655
cevent.
Value
= Convert.ChangeType(cevent.Value, cevent.DesiredType, CultureInfo.CurrentCulture);
668
cevent.
Value
= Convert.ChangeType(cevent.Value, cevent.DesiredType, CultureInfo.CurrentCulture);
System.Windows.Forms.Tests (7)
System\Windows\Forms\BindingTests.cs (4)
482
eventArgs.
Value
= oldValue;
493
eventArgs.
Value
= oldValue;
527
eventArgs.
Value
= oldValue;
538
eventArgs.
Value
= oldValue;
System\Windows\Forms\ConvertEventArgsTests.cs (1)
26
Value
= value
System\Windows\Forms\ListControlTests.cs (2)
2414
e.
Value
= value;
2456
e.
Value
= value;
39 references to Value
System.Windows.Forms (24)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
25348
&& dgvcpe.
Value
is not null
25350
&& dataGridViewCurrentCell.ValueType.IsAssignableFrom(dgvcpe.
Value
.GetType()))
25358
return dataGridViewCurrentCell.SetValueInternal(_ptCurrentCell.Y, dgvcpe.
Value
);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1607
object? formattedValue = gdvcfe.
Value
;
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
537
if (e.
Value
!= item && e.
Value
is string stringValue)
System\Windows\Forms\DataBinding\Binding.cs (18)
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);
683
object? newValue = e.
Value
;
715
if (e.
Value
is not null && (e.
Value
.GetType().IsSubclassOf(type) || e.
Value
.GetType() == type || e.
Value
is DBNull))
717
return e.
Value
;
758
if (e.
Value
!= value)
761
return e.
Value
;
780
object? ret = e.
Value
;
System.Windows.Forms.Tests (15)
System\Windows\Forms\BindingTests.cs (8)
466
object oldValue = eventArgs?.
Value
;
468
Assert.Equal(expectedValue, eventArgs?.
Value
);
486
Assert.Equal(expectedValue, eventArgs?.
Value
);
497
Assert.Equal(expectedValue, eventArgs?.
Value
);
511
object oldValue = eventArgs?.
Value
;
513
Assert.Equal(expectedValue, eventArgs?.
Value
);
531
Assert.Equal(expectedValue, eventArgs?.
Value
);
542
Assert.Equal(expectedValue, eventArgs?.
Value
);
System\Windows\Forms\ConvertEventArgsTests.cs (2)
15
Assert.Equal(value, e.
Value
);
28
Assert.Equal(value, e.
Value
);
System\Windows\Forms\DataGridViewCellFormattingEventArgsTests.cs (1)
23
Assert.Equal(value, e.
Value
);
System\Windows\Forms\DataGridViewCellParsingEventArgsTests.cs (1)
24
Assert.Equal(value, e.
Value
);
System\Windows\Forms\ListControlConvertEventArgsTests.cs (1)
15
Assert.Equal(value, e.
Value
);
System\Windows\Forms\ListControlTests.cs (2)
2410
Assert.Equal(3, e.
Value
);
2452
Assert.Equal(3, e.
Value
);