4 overrides of Converter
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
75public override TypeConverter Converter
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
283public override TypeConverter Converter
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
30public override TypeConverter Converter
System.Windows.Forms.Design (1)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
51public override TypeConverter Converter
43 references to Converter
System.Data.Common (1)
System\Data\xmlsaver.cs (1)
220string? textValue = pd.Converter.ConvertToString(propInst);
System.Windows.Forms (19)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
85return _converter ?? base.Converter;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (3)
984TypeConverter converter = property.Converter; 1173TypeConverter converter = currentProperty.Converter; 1557TypeConverter converter = currentProperty.Converter;
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
513: base.Converter;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
275return _props[boundColumnIndex].Converter; 958dataGridViewColumn.BoundColumnConverter = _props[i].Converter;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
908valueTypeConverter = ValueMemberProperty.Converter; 912valueTypeConverter = DisplayMemberProperty.Converter; 2390valueTypeConverter = ValueMemberProperty.Converter; 2394valueTypeConverter = DisplayMemberProperty.Converter;
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
154_displayMemberConverter = displayMemberProperty.Converter;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
33get => _descriptors[0].Converter;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (1)
54: context.PropertyDescriptor.Converter;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
277_typeConverter ??= PropertyDescriptor.Converter;
System\Windows\Forms\DataBinding\Binding.cs (3)
537_propInfoConverter = _propInfo.Converter; 695fieldInfoConverter = _bindToObject.FieldInfo.Converter; 769fieldInfoConverter = _bindToObject.FieldInfo.Converter;
System\Windows\Forms\Design\EventsTab.cs (1)
142if (!property.Converter.GetPropertiesSupported())
System.Windows.Forms.Design (10)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
676bool standardValuesSupported = pd.Converter.GetStandardValuesSupported(context);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (4)
66string newItem = PropertyDescriptor.Converter.ConvertToString(TypeDescriptorContext, CultureInfo.CurrentCulture, standardValue)!; 160bool converterReadOnly = !PropertyDescriptor.Converter.CanConvertFrom(TypeDescriptorContext, typeof(string)); 164PropertyDescriptor.Converter.GetStandardValuesSupported(TypeDescriptorContext) && 165PropertyDescriptor.Converter.GetStandardValuesExclusive(TypeDescriptorContext);
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (3)
54if (PropertyDescriptor.Converter is not null) 57if (!PropertyDescriptor.Converter.CanConvertFrom(_typeDescriptorContext, valueType)) 64newValue = PropertyDescriptor.Converter.ConvertFrom(_typeDescriptorContext, CultureInfo.CurrentCulture, newValue);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
177TypeConverter converter = PropertyDescriptor.Converter; 286protected override void OnValueChanged() => EditControl!.Text = PropertyDescriptor.Converter.ConvertToString(TypeDescriptorContext, Value);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
211Assert.IsType<Int64Converter>(property.Converter);
System.Windows.Forms.Tests (11)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (6)
137Assert.IsType<StringConverter>(property.Converter); 148Assert.IsType<StringConverter>(property.Converter); 168Assert.IsType<StringConverter>(property.Converter); 175Assert.IsType<StringConverter>(property.Converter); 189Assert.IsType<CustomTypeConverter>(property.Converter); 200Assert.IsType<CustomTypeConverter>(property.Converter);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (2)
62var converter = (Com2ExtendedTypeConverter)handleProperty.Converter; 149var converter = (Com2ExtendedTypeConverter)urlProperty.Converter;
System\Windows\Forms\SpecialFolderEnumConverterTests.cs (3)
16TypeConverter converter = descriptor.Converter; 90TypeConverter converter = (TypeConverter)Activator.CreateInstance(descriptor.Converter.GetType(), new Type[] { typeof(CustomEnum) }); 97return (TypeConverter)Activator.CreateInstance(descriptor.Converter.GetType(), new Type[] { typeof(Environment.SpecialFolder) });
System.Xaml (1)
System\Windows\Markup\ValueSerializer.cs (1)
178TypeConverter converter = descriptor.Converter;