21 overrides of PropertyType
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
45
public override Type
PropertyType
{ get { return _descriptor.PropertyType; } }
System.ComponentModel.TypeConverter (6)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
82
public override Type
PropertyType
System\ComponentModel\Design\DesignerOptionService.cs (2)
413
public override Type
PropertyType
=> _property.PropertyType;
477
public override Type
PropertyType
=> _option.GetType();
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
83
public override Type
PropertyType
=> _extenderInfo.ExtenderGetType();
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
373
public override Type
PropertyType
=> _type;
System\ComponentModel\TypeConverter.cs (1)
380
public override Type
PropertyType
{ get; }
System.Data.Common (5)
System\Data\Common\DbConnectionStringBuilderDescriptor.cs (1)
20
public override Type
PropertyType
{ get; }
System\Data\Common\DbEnumerator.cs (1)
127
public override Type
PropertyType
=> _type;
System\Data\DataColumnPropertyDescriptor.cs (1)
44
public override Type
PropertyType
=> Column.DataType;
System\Data\DataRelationPropertyDescriptor.cs (1)
22
public override Type
PropertyType
=> typeof(IBindingList);
System\Data\DataTablePropertyDescriptor.cs (1)
22
public override Type
PropertyType
=> typeof(IBindingList);
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
96
public override Type
PropertyType
=> _baseDescriptor.PropertyType;
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
370
public override Type?
PropertyType
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
80
public override Type
PropertyType
=> _descriptors[0].PropertyType;
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1196
public override Type
PropertyType
{ get; }
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
70
public override Type
PropertyType
=> Event.EventType;
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
134
public override Type
PropertyType
=> _propertyDescriptor.PropertyType;
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1015
public override Type
PropertyType
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
24
public override Type
PropertyType
=> _basePropDesc.PropertyType;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1340
public override Type
PropertyType
=> typeof(Type);
134 references to PropertyType
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
45
public override Type PropertyType { get { return _descriptor.
PropertyType
; } }
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (2)
218
var item = new PropertyStoreItem(property.
PropertyType
, GetExplicitAttributes(property));
244
AttributeCollection typeAttributes = TypeDescriptor.GetAttributes(propertyDescriptor.
PropertyType
);
System.ComponentModel.TypeConverter (11)
System\ComponentModel\ComponentResourceManager.cs (1)
164
if (prop != null && !prop.IsReadOnly && (kvp.Value == null || prop.
PropertyType
.IsInstanceOfType(kvp.Value)))
System\ComponentModel\Design\DesignerOptionService.cs (1)
413
public override Type PropertyType => _property.
PropertyType
;
System\ComponentModel\PropertyDescriptor.cs (8)
87
_converter ??= TypeDescriptor.GetConverter(
PropertyType
);
114
_converter ??= TypeDescriptor.GetConverterFromRegisteredType(
PropertyType
);
211
&& pd.
PropertyType
==
PropertyType
232
return TypeDescriptor.CreateInstance(null, type, typeArgs, new object[] {
PropertyType
});
272
return TypeDescriptor.GetProperties(
PropertyType
, filter);
329
editor ??= TypeDescriptor.GetEditor(
PropertyType
, editorBaseType);
359
public 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)
455
reflected.ComponentType, reflected.
PropertyType
, reflected.IsReadOnly, attributes);
System\Data\xmlsaver.cs (1)
134
Type type = pd.
PropertyType
;
System\Data\XMLSchema.cs (2)
46
Type type = pd.
PropertyType
;
290
Type type = pd.
PropertyType
;
System.Windows.Forms (46)
misc\ImageListUtils.cs (1)
48
if (typeof(ImageList).IsAssignableFrom(property.
PropertyType
))
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
96
public override Type PropertyType => _baseDescriptor.
PropertyType
;
System\Windows\Forms\ActiveX\AxHost.cs (2)
994
if (TypeDescriptor.GetProperties(this)["SelectionStyle"] is { } property && property.
PropertyType
== typeof(int))
2392
if (TypeDescriptor.GetProperties(this)["SelectionStyle"] is { } property && property.
PropertyType
== typeof(int))
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
992
return property.
PropertyType
.IsAssignableTo(typeof(ISerializable))
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (6)
328
return _props[boundColumnIndex].
PropertyType
;
940
if (typeof(IList).IsAssignableFrom(_props[i].
PropertyType
))
944
if (!imageTypeConverter.CanConvertFrom(_props[i].
PropertyType
))
950
DataGridViewColumn dataGridViewColumn = GetDataGridViewColumnFromType(_props[i].
PropertyType
);
960
dataGridViewColumn.ValueType = _props[i].
PropertyType
;
1207
Debug.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)
298
return DisplayMemberProperty.
PropertyType
;
302
return ValueMemberProperty.
PropertyType
;
492
return ValueMemberProperty.
PropertyType
;
496
return DisplayMemberProperty.
PropertyType
;
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
267
if (typeof(IList).IsAssignableFrom(props[i].
PropertyType
))
280
if (typeof(IList).IsAssignableFrom(props[i].
PropertyType
))
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2948
if (changedItem.PropertyDescriptor?.
PropertyType
is { } propertyType
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1148
if (property is not null && property.
PropertyType
== propertyType)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
80
public override Type PropertyType => _descriptors[0].
PropertyType
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyDescriptorComparer.cs (2)
36
result = string.Compare(a1.
PropertyType
.FullName, a2.
PropertyType
.FullName, true, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (2)
311
string entryName = $"{basePropertyDescriptor.Name} {basePropertyDescriptor.
PropertyType
.FullName}";
323
string sortString = $"{propertyDescriptor.Name} {propertyDescriptor.
PropertyType
.FullName}";
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
184
public override Type? PropertyType => PropertyDescriptor.
PropertyType
;
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (1)
89
if (typeof(ImageList).IsAssignableFrom(prop.
PropertyType
))
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
736
if (prop is not null && prop.
PropertyType
== typeof(int))
1063
if (prop is not null && prop.
PropertyType
== typeof(int))
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
160
return FieldInfo?.
PropertyType
;
System\Windows\Forms\DataBinding\Binding.cs (4)
539
if (tempPropIsNullInfo is not null && tempPropIsNullInfo.
PropertyType
== typeof(bool) && !tempPropIsNullInfo.IsReadOnly)
698
(value is null ? _propInfo!.
PropertyType
: value.GetType()),
748
Type type = _propInfo!.
PropertyType
;
1053
if (_propInfo.
PropertyType
== typeof(object))
System\Windows\Forms\DataBinding\BindingContext.cs (1)
269
bindingManagerBase = typeof(IList).IsAssignableFrom(prop.
PropertyType
)
System\Windows\Forms\DataBinding\BindingManagerBase.cs (1)
169
return GetItemProperties(itemProps[j].
PropertyType
, offset + 1, dataSources, listAccessors);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (4)
107
type = listAccessors[0].
PropertyType
;
296
if (dmProp is null || dmProp.
PropertyType
is ICustomTypeDescriptor)
302
return GetListItemType(dmProp.
PropertyType
);
353
Type subType = listAccessors[startIndex].
PropertyType
;
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (2)
36
if (_fieldInfo is null || !typeof(IList).IsAssignableFrom(_fieldInfo.
PropertyType
))
41
finalType = _fieldInfo.
PropertyType
;
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (1)
89
internal override Type BindType => _fieldInfo.
PropertyType
;
System\Windows\Forms\ImageIndexConverter.cs (1)
112
if (typeof(ImageList).IsAssignableFrom(prop.
PropertyType
))
System\Windows\Forms\ImageKeyConverter.cs (1)
118
if (typeof(ImageList).IsAssignableFrom(prop.
PropertyType
))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (1)
523
if (prop is not null && prop.
PropertyType
== typeof(string))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
50
if (prop is not null && prop.
PropertyType
== typeof(string))
System.Windows.Forms.Design (68)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
678
else if (pd.
PropertyType
== typeof(bool))
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (2)
52
if (!PropertyDescriptor.
PropertyType
.IsAssignableFrom(valueType))
59
ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_CouldNotConvertValue, newValue, PropertyDescriptor.
PropertyType
));
System\ComponentModel\Design\DesignerActionUIService.cs (1)
78
if (p is not null && p.
PropertyType
== typeof(bool) && !(bool)p.GetValue(null)!)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
36
if (typeof(ICollection).IsAssignableFrom(propertyDescriptor.
PropertyType
) &&
134
public override Type PropertyType => _propertyDescriptor.
PropertyType
;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
545
if (md._member is PropertyDescriptor prop && prop.
PropertyType
.IsSerializable)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
71
manager.GetSerializer(prop.
PropertyType
, typeof(CodeDomSerializer)) is not CollectionCodeDomSerializer)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
1557
if (rhs is IConvertible ic && p.
PropertyType
!= rhs.GetType())
1561
rhs = ic.ToType(p.
PropertyType
, null);
2203
ExpressionContext tree = new(propertyRef, property.
PropertyType
, value);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
147
manager.TryGetContext(out PropertyDescriptor? property) && property.
PropertyType
== context.ExpressionType)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
67
if (typeof(IComponent).IsAssignableFrom(property.
PropertyType
) &&
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1017
get => _property.
PropertyType
;
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (4)
180
ExpressionContext tree = new(propertyRef, property.
PropertyType
, value, propertyValue);
217
manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerNoSerializerForComponent, property.
PropertyType
.FullName), manager));
248
tree = new ExpressionContext(methodRef, property.
PropertyType
, value);
329
tree = new ExpressionContext(propertyRef, property.
PropertyType
, value);
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
308
if (prop is not null && prop.
PropertyType
== typeof(MemberAttributes))
System\ComponentModel\Design\UndoEngine.cs (1)
455
if (prop.
PropertyType
.IsInstanceOfType(e.Component) &&
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (4)
524
if (propWidth is not null && !typeof(int).IsAssignableFrom(propWidth.
PropertyType
))
529
if (propHeight is not null && !typeof(int).IsAssignableFrom(propHeight.
PropertyType
))
534
if (propTop is not null && !typeof(int).IsAssignableFrom(propTop.
PropertyType
))
539
if (propLeft is not null && !typeof(int).IsAssignableFrom(propLeft.
PropertyType
))
System\Windows\Forms\Design\ButtonBaseDesigner.cs (1)
26
if (prop is not null && prop.
PropertyType
== typeof(bool) && !prop.IsReadOnly && prop.IsBrowsable)
System\Windows\Forms\Design\CollectionEditVerbManager.cs (2)
35
if (prop is not null && typeof(ICollection).IsAssignableFrom(prop.
PropertyType
))
197
Debug.Assert(itemsEditor is not null, $"Didn't get a collection editor for type '{_targetProperty.
PropertyType
.FullName}'");
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
83
if (textProp is not null && textProp.
PropertyType
== typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System\Windows\Forms\Design\CommandSet.cs (3)
601
if (currentSnapProp is not null && currentSnapProp.
PropertyType
!= typeof(bool))
607
if (gridSizeProp is not null && gridSizeProp.
PropertyType
!= typeof(Size))
2089
if (textProp is not null && textProp.
PropertyType
== typeof(string))
System\Windows\Forms\Design\ControlCommandSet.cs (3)
385
if (currentSnapProp.
PropertyType
== typeof(bool) && c.Site is not null && c.Site.Container == container)
406
if (currentSnapProp is not null && currentSnapProp.
PropertyType
!= typeof(bool))
415
if (gridSizeProp is not null && gridSizeProp.
PropertyType
!= typeof(Size))
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
24
public override Type PropertyType => _basePropDesc.
PropertyType
;
System\Windows\Forms\Design\ControlDesigner.cs (3)
933
|| visibleProp.
PropertyType
!= typeof(bool)
939
|| enabledProp.
PropertyType
!= typeof(bool)
1157
if (textProp is not null && textProp.
PropertyType
== typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (3)
728
if (typeof(IList<object>).IsAssignableFrom(propertyDescriptor.
PropertyType
))
732
if (!imageTypeConverter.CanConvertFrom(propertyDescriptor.
PropertyType
))
738
_dataColumns.Items.Add(new ListBoxItem(propertyDescriptor.
PropertyType
, propertyDescriptor.Name));
System\Windows\Forms\Design\DataGridViewDesigner.cs (6)
420
else if (typeof(IList).IsAssignableFrom(dataFieldProperty.
PropertyType
))
425
if (!imageTypeConverter.CanConvertFrom(dataFieldProperty.
PropertyType
))
481
else if (typeof(IList).IsAssignableFrom(dataFieldProperty.
PropertyType
))
486
if (!imageTypeConverter.CanConvertFrom(dataFieldProperty.
PropertyType
))
618
Type propType = backEndProps[i].
PropertyType
;
660
dataGridViewColumn.ValueType = backEndProps[i].
PropertyType
;
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1500
if (typeof(byte[]).IsAssignableFrom(property.
PropertyType
))
1521
if (typeof(byte[]).IsAssignableFrom(property.
PropertyType
))
1527
if (typeof(IList).IsAssignableFrom(property.
PropertyType
))
System\Windows\Forms\Design\DocumentDesigner.cs (1)
635
if (backProp is not null && backProp.
PropertyType
== typeof(Color) && !backProp.ShouldSerializeValue(Component))
System\Windows\Forms\Design\EditorServiceContext.cs (2)
28
if (prop is not null && typeof(ICollection).IsAssignableFrom(prop.
PropertyType
))
149
Debug.Assert(itemsEditor is not null, $"Didn't get a collection editor for type '{_targetProperty!.
PropertyType
.FullName}'");
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
323
if (windowStateProp is not null && windowStateProp.
PropertyType
== typeof(FormWindowState))
System\Windows\Forms\Design\ImageIndexEditor.cs (2)
67
if (typeof(ImageList).IsAssignableFrom(property.
PropertyType
))
172
if (typeof(ImageList).IsAssignableFrom(property.
PropertyType
))
System\Windows\Forms\Design\LinkAreaEditor.cs (2)
38
if (property?.
PropertyType
== typeof(string))
53
if (!text.Equals(originalText) && property?.
PropertyType
== typeof(string))
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (1)
33
if (property?.
PropertyType
== typeof(string))
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (1)
52
if (property?.
PropertyType
== typeof(string))
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
285
if (prop is not null && prop.
PropertyType
== typeof(Globalization.CultureInfo))
System\Windows\Forms\Design\RadioButtonDesigner.cs (1)
20
if (prop is not null && prop.
PropertyType
== typeof(bool) && !prop.IsReadOnly && prop.IsBrowsable)
System\Windows\Forms\Design\TabControlDesigner.cs (2)
259
if (nameProp is not null && nameProp.
PropertyType
== typeof(string))
272
if (styleProp is not null && styleProp.
PropertyType
== typeof(bool) && !styleProp.IsReadOnly && styleProp.IsBrowsable)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
97
if (prop is not null && prop.
PropertyType
== typeof(bool))
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
94
if (textProp is not null && textProp.
PropertyType
== typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
665
if (pd is not null && pd.
PropertyType
.Equals(typeof(string)))
682
if (textProp is not null && textProp.
PropertyType
== typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System.Windows.Forms.Primitives (2)
System\ComponentModel\PropertyDescriptorExtensions.cs (2)
10
if (typeof(T).IsAssignableFrom(descriptor.
PropertyType
))
24
if (typeof(T).IsAssignableFrom(descriptor.
PropertyType
))