2 writes to DataSourceNullValue
System.Windows.Forms.Tests (2)
System\Windows\Forms\BindingTests.cs (2)
199DataSourceNullValue = value 204binding.DataSourceNullValue = value;
12 references to DataSourceNullValue
System.Windows.Forms (4)
System\Windows\Forms\DataBinding\Binding.cs (4)
586return DataSourceNullValue; 589return _propInfo?.GetValue(BindableComponent) ?? DataSourceNullValue; 1047bool isNull = value is null || Formatter.IsNullData(value, DataSourceNullValue); 1058_propInfo.SetValue(BindableComponent, DataSourceNullValue);
System.Windows.Forms.Tests (8)
System\Windows\Forms\BindingTests.cs (8)
31Assert.Same(DBNull.Value, binding.DataSourceNullValue); 60Assert.Same(DBNull.Value, binding.DataSourceNullValue); 89Assert.Same(DBNull.Value, binding.DataSourceNullValue); 118Assert.Same(DBNull.Value, binding.DataSourceNullValue); 147Assert.Same(DBNull.Value, binding.DataSourceNullValue); 176Assert.Same(DBNull.Value, binding.DataSourceNullValue); 201Assert.Equal(value, binding.DataSourceNullValue); 205Assert.Equal(value, binding.DataSourceNullValue);