23 overrides of PropertyType
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
45public override Type PropertyType { get { return _descriptor.PropertyType; } }
System.ComponentModel.TypeConverter (6)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
82public override Type PropertyType
System\ComponentModel\Design\DesignerOptionService.cs (2)
418public override Type PropertyType => _property.PropertyType; 482public override Type PropertyType => _option.GetType();
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
83public override Type PropertyType => _extenderInfo.ExtenderGetType();
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
373public override Type PropertyType => _type;
System\ComponentModel\TypeConverter.cs (1)
380public override Type PropertyType { get; }
System.Data.Common (5)
System\Data\Common\DbConnectionStringBuilderDescriptor.cs (1)
20public override Type PropertyType { get; }
System\Data\Common\DbEnumerator.cs (1)
127public override Type PropertyType => _type;
System\Data\DataColumnPropertyDescriptor.cs (1)
44public override Type PropertyType => Column.DataType;
System\Data\DataRelationPropertyDescriptor.cs (1)
22public override Type PropertyType => typeof(IBindingList);
System\Data\DataTablePropertyDescriptor.cs (1)
22public override Type PropertyType => typeof(IBindingList);
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
96public override Type PropertyType => _baseDescriptor.PropertyType;
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
370public override Type? PropertyType
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
80public override Type PropertyType => _descriptors[0].PropertyType;
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1188public override Type PropertyType { get; }
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
70public override Type PropertyType => Event.EventType;
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
134public override Type PropertyType => _propertyDescriptor.PropertyType;
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1015public override Type PropertyType
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
24public override Type PropertyType => _basePropDesc.PropertyType;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1357public override Type PropertyType => typeof(Type);
System.Windows.Forms.Tests (2)
System\Windows\Forms\ListBindingHelperTests.cs (1)
744public override Type PropertyType => new CustomTypeDescriptorType();
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
144public override Type PropertyType => throw new NotImplementedException();
147 references to PropertyType
PresentationFramework (5)
MS\Internal\Data\PropertyPathWorker.cs (1)
1168sourceType = pd.PropertyType;
System\Windows\Data\CollectionView.cs (1)
1501list.Add(new ItemPropertyInfo(pd.Name, pd.PropertyType, pd));
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
763get { return _descriptor.PropertyType; }
System\Windows\Markup\Primitives\MarkupWriter.cs (2)
897!typeof(IList).IsAssignableFrom(descriptor.PropertyType)) 1465if (descriptor.PropertyType == typeof(Type))
System.ComponentModel.Annotations (4)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
45public override Type PropertyType { get { return _descriptor.PropertyType; } }
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (2)
218var item = new PropertyStoreItem(property.PropertyType, GetExplicitAttributes(property)); 244AttributeCollection typeAttributes = TypeDescriptor.GetAttributes(propertyDescriptor.PropertyType);
System\ComponentModel\DataAnnotations\Validator.cs (1)
525context.MemberType = property.PropertyType;
System.ComponentModel.TypeConverter (11)
System\ComponentModel\ComponentResourceManager.cs (1)
174if (prop != null && !prop.IsReadOnly && (kvp.Value == null || prop.PropertyType.IsInstanceOfType(kvp.Value)))
System\ComponentModel\Design\DesignerOptionService.cs (1)
418public override Type PropertyType => _property.PropertyType;
System\ComponentModel\PropertyDescriptor.cs (8)
87_converter ??= TypeDescriptor.GetConverter(PropertyType); 114_converter ??= TypeDescriptor.GetConverterFromRegisteredType(PropertyType); 211&& pd.PropertyType == PropertyType 232return TypeDescriptor.CreateInstance(null, type, typeArgs, new object[] { PropertyType }); 272return TypeDescriptor.GetProperties(PropertyType, filter); 329editor ??= TypeDescriptor.GetEditor(PropertyType, editorBaseType); 359public override int GetHashCode() => NameHashCode ^ PropertyType.GetHashCode();
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
167_type = oldReflectPropertyDescriptor.PropertyType;
System.Data.Common (4)
System\Data\Common\DbConnectionStringBuilder.cs (1)
452reflected.ComponentType, reflected.PropertyType, reflected.IsReadOnly, attributes);
System\Data\xmlsaver.cs (1)
134Type type = pd.PropertyType;
System\Data\XMLSchema.cs (2)
46Type type = pd.PropertyType; 293Type type = pd.PropertyType;
System.Windows.Forms (46)
misc\ImageListUtils.cs (1)
48if (typeof(ImageList).IsAssignableFrom(property.PropertyType))
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
96public override Type PropertyType => _baseDescriptor.PropertyType;
System\Windows\Forms\ActiveX\AxHost.cs (2)
996if (TypeDescriptor.GetProperties(this)["SelectionStyle"] is { } property && property.PropertyType == typeof(int)) 2394if (TypeDescriptor.GetProperties(this)["SelectionStyle"] is { } property && property.PropertyType == typeof(int))
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1000return property.PropertyType.IsAssignableTo(typeof(ISerializable))
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (6)
328return _props[boundColumnIndex].PropertyType; 940if (typeof(IList).IsAssignableFrom(_props[i].PropertyType)) 944if (!imageTypeConverter.CanConvertFrom(_props[i].PropertyType)) 950DataGridViewColumn dataGridViewColumn = GetDataGridViewColumnFromType(_props[i].PropertyType); 960dataGridViewColumn.ValueType = _props[i].PropertyType; 1207Debug.Assert(!_props[i].IsBrowsable || typeof(IList).IsAssignableFrom(_props[i].PropertyType), "if the DGV does not have any columns then the properties in the currency manager should be Browsable(false) or point to sub lists");
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
298return DisplayMemberProperty.PropertyType; 302return ValueMemberProperty.PropertyType; 492return ValueMemberProperty.PropertyType; 496return DisplayMemberProperty.PropertyType;
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
266if (typeof(IList).IsAssignableFrom(props[i].PropertyType)) 279if (typeof(IList).IsAssignableFrom(props[i].PropertyType))
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2953if (changedItem.PropertyDescriptor?.PropertyType is { } propertyType
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1157if (property is not null && property.PropertyType == propertyType)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
80public override Type PropertyType => _descriptors[0].PropertyType;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyDescriptorComparer.cs (2)
36result = string.Compare(a1.PropertyType.FullName, a2.PropertyType.FullName, true, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (2)
274string entryName = $"{basePropertyDescriptor.Name} {basePropertyDescriptor.PropertyType.FullName}"; 286string sortString = $"{propertyDescriptor.Name} {propertyDescriptor.PropertyType.FullName}";
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
184public override Type? PropertyType => PropertyDescriptor.PropertyType;
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (1)
89if (typeof(ImageList).IsAssignableFrom(prop.PropertyType))
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
736if (prop is not null && prop.PropertyType == typeof(int)) 1069if (prop is not null && prop.PropertyType == typeof(int))
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
160return FieldInfo?.PropertyType;
System\Windows\Forms\DataBinding\Binding.cs (4)
539if (tempPropIsNullInfo is not null && tempPropIsNullInfo.PropertyType == typeof(bool) && !tempPropIsNullInfo.IsReadOnly) 701(value is null ? _propInfo!.PropertyType : value.GetType()), 751Type type = _propInfo!.PropertyType; 1056if (_propInfo.PropertyType == typeof(object))
System\Windows\Forms\DataBinding\BindingContext.cs (1)
269bindingManagerBase = typeof(IList).IsAssignableFrom(prop.PropertyType)
System\Windows\Forms\DataBinding\BindingManagerBase.cs (1)
169return GetItemProperties(itemProps[j].PropertyType, offset + 1, dataSources, listAccessors);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (4)
107type = listAccessors[0].PropertyType; 296if (dmProp is null || dmProp.PropertyType is ICustomTypeDescriptor) 302return GetListItemType(dmProp.PropertyType); 353Type subType = listAccessors[startIndex].PropertyType;
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (2)
36if (_fieldInfo is null || !typeof(IList).IsAssignableFrom(_fieldInfo.PropertyType)) 41finalType = _fieldInfo.PropertyType;
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (1)
89internal override Type BindType => _fieldInfo.PropertyType;
System\Windows\Forms\ImageIndexConverter.cs (1)
112if (typeof(ImageList).IsAssignableFrom(prop.PropertyType))
System\Windows\Forms\ImageKeyConverter.cs (1)
118if (typeof(ImageList).IsAssignableFrom(prop.PropertyType))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (1)
523if (prop is not null && prop.PropertyType == typeof(string))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
50if (prop is not null && prop.PropertyType == typeof(string))
System.Windows.Forms.Design (68)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
681else if (pd.PropertyType == typeof(bool))
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (2)
52if (!PropertyDescriptor.PropertyType.IsAssignableFrom(valueType)) 59ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_CouldNotConvertValue, newValue, PropertyDescriptor.PropertyType));
System\ComponentModel\Design\DesignerActionUIService.cs (1)
78if (p is not null && p.PropertyType == typeof(bool) && !(bool)p.GetValue(null)!)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
36if (typeof(ICollection).IsAssignableFrom(propertyDescriptor.PropertyType) && 134public override Type PropertyType => _propertyDescriptor.PropertyType;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
545if (md._member is PropertyDescriptor prop && prop.PropertyType.IsSerializable)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
71manager.GetSerializer(prop.PropertyType, typeof(CodeDomSerializer)) is not CollectionCodeDomSerializer)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
1557if (rhs is IConvertible ic && p.PropertyType != rhs.GetType()) 1561rhs = ic.ToType(p.PropertyType, null); 2206ExpressionContext tree = new(propertyRef, property.PropertyType, value);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
147manager.TryGetContext(out PropertyDescriptor? property) && property.PropertyType == context.ExpressionType)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
67if (typeof(IComponent).IsAssignableFrom(property.PropertyType) &&
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1017get => _property.PropertyType;
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (4)
180ExpressionContext tree = new(propertyRef, property.PropertyType, value, propertyValue); 217manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerNoSerializerForComponent, property.PropertyType.FullName), manager)); 248tree = new ExpressionContext(methodRef, property.PropertyType, value); 329tree = new ExpressionContext(propertyRef, property.PropertyType, value);
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
308if (prop is not null && prop.PropertyType == typeof(MemberAttributes))
System\ComponentModel\Design\UndoEngine.cs (1)
455if (prop.PropertyType.IsInstanceOfType(e.Component) &&
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (4)
524if (propWidth is not null && !typeof(int).IsAssignableFrom(propWidth.PropertyType)) 529if (propHeight is not null && !typeof(int).IsAssignableFrom(propHeight.PropertyType)) 534if (propTop is not null && !typeof(int).IsAssignableFrom(propTop.PropertyType)) 539if (propLeft is not null && !typeof(int).IsAssignableFrom(propLeft.PropertyType))
System\Windows\Forms\Design\ButtonBaseDesigner.cs (1)
28if (prop is not null && prop.PropertyType == typeof(bool) && !prop.IsReadOnly && prop.IsBrowsable)
System\Windows\Forms\Design\CollectionEditVerbManager.cs (2)
35if (prop is not null && typeof(ICollection).IsAssignableFrom(prop.PropertyType)) 197Debug.Assert(itemsEditor is not null, $"Didn't get a collection editor for type '{_targetProperty.PropertyType.FullName}'");
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
85if (textProp is not null && textProp.PropertyType == typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System\Windows\Forms\Design\CommandSet.cs (3)
607if (currentSnapProp is not null && currentSnapProp.PropertyType != typeof(bool)) 613if (gridSizeProp is not null && gridSizeProp.PropertyType != typeof(Size)) 2094if (textProp is not null && textProp.PropertyType == typeof(string))
System\Windows\Forms\Design\ControlCommandSet.cs (3)
388if (currentSnapProp.PropertyType == typeof(bool) && c.Site is not null && c.Site.Container == container) 409if (currentSnapProp is not null && currentSnapProp.PropertyType != typeof(bool)) 418if (gridSizeProp is not null && gridSizeProp.PropertyType != typeof(Size))
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
24public override Type PropertyType => _basePropDesc.PropertyType;
System\Windows\Forms\Design\ControlDesigner.cs (3)
918|| visibleProp.PropertyType != typeof(bool) 924|| enabledProp.PropertyType != typeof(bool) 1142if (textProp is not null && textProp.PropertyType == typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (3)
730if (typeof(IList<object>).IsAssignableFrom(propertyDescriptor.PropertyType)) 734if (!imageTypeConverter.CanConvertFrom(propertyDescriptor.PropertyType)) 740_dataColumns.Items.Add(new ListBoxItem(propertyDescriptor.PropertyType, propertyDescriptor.Name));
System\Windows\Forms\Design\DataGridViewDesigner.cs (6)
430else if (typeof(IList).IsAssignableFrom(dataFieldProperty.PropertyType)) 435if (!imageTypeConverter.CanConvertFrom(dataFieldProperty.PropertyType)) 491else if (typeof(IList).IsAssignableFrom(dataFieldProperty.PropertyType)) 496if (!imageTypeConverter.CanConvertFrom(dataFieldProperty.PropertyType)) 628Type propType = backEndProps[i].PropertyType; 670dataGridViewColumn.ValueType = backEndProps[i].PropertyType;
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1504if (typeof(byte[]).IsAssignableFrom(property.PropertyType)) 1525if (typeof(byte[]).IsAssignableFrom(property.PropertyType)) 1531if (typeof(IList).IsAssignableFrom(property.PropertyType))
System\Windows\Forms\Design\DocumentDesigner.cs (1)
678if (backProp is not null && backProp.PropertyType == typeof(Color) && !backProp.ShouldSerializeValue(Component))
System\Windows\Forms\Design\EditorServiceContext.cs (2)
28if (prop is not null && typeof(ICollection).IsAssignableFrom(prop.PropertyType)) 149Debug.Assert(itemsEditor is not null, $"Didn't get a collection editor for type '{_targetProperty!.PropertyType.FullName}'");
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
323if (windowStateProp is not null && windowStateProp.PropertyType == typeof(FormWindowState))
System\Windows\Forms\Design\ImageIndexEditor.cs (2)
67if (typeof(ImageList).IsAssignableFrom(property.PropertyType)) 172if (typeof(ImageList).IsAssignableFrom(property.PropertyType))
System\Windows\Forms\Design\LinkAreaEditor.cs (2)
38if (property?.PropertyType == typeof(string)) 53if (!text.Equals(originalText) && property?.PropertyType == typeof(string))
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (1)
33if (property?.PropertyType == typeof(string))
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (1)
52if (property?.PropertyType == typeof(string))
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
285if (prop is not null && prop.PropertyType == typeof(Globalization.CultureInfo))
System\Windows\Forms\Design\RadioButtonDesigner.cs (1)
22if (prop is not null && prop.PropertyType == typeof(bool) && !prop.IsReadOnly && prop.IsBrowsable)
System\Windows\Forms\Design\TabControlDesigner.cs (2)
276if (nameProp is not null && nameProp.PropertyType == typeof(string)) 289if (styleProp is not null && styleProp.PropertyType == typeof(bool) && !styleProp.IsReadOnly && styleProp.IsBrowsable)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
97if (prop is not null && prop.PropertyType == typeof(bool))
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
94if (textProp is not null && textProp.PropertyType == typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
686if (pd is not null && pd.PropertyType.Equals(typeof(string))) 703if (textProp is not null && textProp.PropertyType == typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
220Assert.Equal(typeof(int), property.PropertyType);
System.Windows.Forms.Primitives (2)
System\ComponentModel\PropertyDescriptorExtensions.cs (2)
10if (typeof(T).IsAssignableFrom(descriptor.PropertyType)) 24if (typeof(T).IsAssignableFrom(descriptor.PropertyType))
System.Windows.Forms.Tests (5)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (1)
288Assert.Equal(typeof(string), property.PropertyType);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
154Type propertyType = property.PropertyType;
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (3)
55Assert.Equal("System.Int32", handleProperty.PropertyType.FullName); 72Assert.Equal("System.Int16", typeProperty.PropertyType.FullName); 137Assert.Equal("System.String", urlProperty.PropertyType.FullName);
System.Xaml (1)
System\Windows\Markup\ValueSerializer.cs (1)
175ValueSerializer? result = GetSerializerFor(descriptor.PropertyType);