2 instantiations of InheritedPropertyDescriptor
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ComponentDesigner.cs (1)
434props.Add(prop.Name, new(prop, Component));
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\InheritedPropertyDescriptorTestExtensions.cs (1)
17InheritedPropertyDescriptor inheritedPropertyDescriptor = new(propertyDescriptor, control);
14 references to InheritedPropertyDescriptor
System.Windows.Forms.Design (8)
System\ComponentModel\Design\ComponentDesigner.cs (4)
16private Dictionary<string, InheritedPropertyDescriptor>? _inheritedProps; 404Dictionary<string, InheritedPropertyDescriptor> props = []; 675foreach (KeyValuePair<string, InheritedPropertyDescriptor> de in _inheritedProps) 681InheritedPropertyDescriptor inheritedPropDesc = de.Value;
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (3)
21/// Initializes a new instance of the <see cref="InheritedPropertyDescriptor"/> class. 25Debug.Assert(propertyDescriptor is not InheritedPropertyDescriptor, $"Recursive inheritance propertyDescriptor {propertyDescriptor}"); 126Debug.Assert(value is not InheritedPropertyDescriptor, $"Recursive inheritance propertyDescriptor {_propertyDescriptor}");
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
182if (property is InheritedPropertyDescriptor inheritedDesc && !isArray)
System.Windows.Forms.Design.Tests (6)
System\Windows\Forms\Design\InheritedPropertyDescriptorTestExtensions.cs (2)
13public static InheritedPropertyDescriptor GetInheritedPropertyDescriptor(this Control control, string property) 17InheritedPropertyDescriptor inheritedPropertyDescriptor = new(propertyDescriptor, control);
System\Windows\Forms\Design\InheritedPropertyDescriptorTests.cs (4)
17InheritedPropertyDescriptor inheritedPropertyDescriptor = control.GetInheritedPropertyDescriptor(nameof(Control.Size)); 31InheritedPropertyDescriptor inheritedPropertyDescriptor = control.GetInheritedPropertyDescriptor(nameof(Control.Anchor)); 49InheritedPropertyDescriptor inheritedPropertyDescriptor = control.GetInheritedPropertyDescriptor(nameof(Control.BackColor)); 63InheritedPropertyDescriptor inheritedPropertyDescriptor = control.GetInheritedPropertyDescriptor(nameof(Control.Visible));