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