17 references to Formatter
System.Windows.Forms (17)
winforms\Managed\System\WinForms\Binding.cs (9)
57
private object dsNullValue =
Formatter
.GetDefaultDataSourceNullValue(null);
397
if (IsBinding &&
Formatter
.IsNullData(bindToObject.GetValue(), this.dsNullValue)) {
429
if (
Formatter
.IsNullData(dsValue, oldValue)) {
435
if (
Formatter
.IsNullData(dsValue, value)) {
596
return this.dsNullValueSet ? this.dsNullValue :
Formatter
.GetDefaultDataSourceNullValue(type);
731
return
Formatter
.ParseObject(value, type, (value == null ? propInfo.PropertyType : value.GetType()), fieldInfoConverter, propInfoConverter, formatInfo, nullValue, GetDataSourceNullValue(type));
792
return
Formatter
.FormatObject(value, type, fieldInfoConverter, propInfoConverter, formatString, formatInfo, nullValue, dsNullValue);
1075
bool isNull = value == null ||
Formatter
.IsNullData(value, DataSourceNullValue);
1109
return this.dsNullValueSet && this.dsNullValue !=
Formatter
.GetDefaultDataSourceNullValue(null);
winforms\Managed\System\WinForms\DataGridViewCell.cs (3)
1910
formattedValue =
Formatter
.FormatObject(formattedValue,
4474
return
Formatter
.ParseObject(formattedValue,
4481
cellStyle.IsDataSourceNullValueDefault ?
Formatter
.GetDefaultDataSourceNullValue(valueType) : cellStyle.DataSourceNullValue);
winforms\Managed\System\WinForms\Formatter.cs (2)
50
if (
Formatter
.IsNullData(value, dataSourceNullValue)) {
241
return
Formatter
.NullData(oldTargetType, dataSourceNullValue);
winforms\Managed\System\WinForms\ListControl.cs (1)
592
return (string)
Formatter
.FormatObject(filteredItem, typeof(String), this.DisplayMemberConverter, stringTypeConverter, formatString, formatInfo, null, System.DBNull.Value);
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
2564
parseRetVal =
Formatter
.ParseObject(
2572
Formatter
.GetDefaultDataSourceNullValue(this.validatingType)); // dataSourceNullValue