12 types derived from PropertyDescriptor
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
6internal sealed class MetadataPropertyDescriptorWrapper : PropertyDescriptor
System.ComponentModel.TypeConverter (6)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
66internal abstract class XPropertyDescriptor<T, TProperty> : PropertyDescriptor where T : XObject
System\ComponentModel\Design\DesignerOptionService.cs (2)
401private sealed class WrappedPropertyDescriptor : PropertyDescriptor 469private sealed class OptionPropertyDescriptor : PropertyDescriptor
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
13internal sealed class ExtendedPropertyDescriptor : PropertyDescriptor
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
47internal sealed class ReflectPropertyDescriptor : PropertyDescriptor
System\ComponentModel\TypeConverter.cs (1)
344protected abstract class SimplePropertyDescriptor : PropertyDescriptor
System.Data.Common (5)
System\Data\Common\DbConnectionStringBuilderDescriptor.cs (1)
8internal sealed class DbConnectionStringBuilderDescriptor : PropertyDescriptor
System\Data\Common\DbEnumerator.cs (1)
111private sealed class DbColumnDescriptor : PropertyDescriptor
System\Data\DataColumnPropertyDescriptor.cs (1)
11internal sealed class DataColumnPropertyDescriptor : PropertyDescriptor
System\Data\DataRelationPropertyDescriptor.cs (1)
9internal sealed class DataRelationPropertyDescriptor : PropertyDescriptor
System\Data\DataTablePropertyDescriptor.cs (1)
9internal sealed class DataTablePropertyDescriptor : PropertyDescriptor
372 references to PropertyDescriptor
netstandard (1)
netstandard.cs (1)
394[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.PropertyDescriptor))]
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TypeContext.cs (1)
123public PropertyDescriptor PropertyDescriptor
PresentationFramework (99)
MS\Internal\Data\ClrBindingWorker.cs (2)
809PropertyDescriptor pd; 815if ((pd = info as PropertyDescriptor) != null)
MS\Internal\Data\DataBindEngine.cs (3)
418internal object GetValue(object item, PropertyDescriptor pd, bool indexerIsNext) 426PropertyDescriptor pd = descriptor as PropertyDescriptor;
MS\Internal\Data\DefaultValueConverter.cs (1)
797public PropertyDescriptor PropertyDescriptor { get { return null; } }
MS\Internal\Data\PropertyPathWorker.cs (14)
124PropertyDescriptor pd; 235PropertyDescriptor pd; 340PropertyDescriptor pd; 700PropertyDescriptor oldPD; 872PropertyDescriptor newPD; 1021PropertyDescriptor pd; 1022if (level < 0 || (pd = _arySVS[level].info as PropertyDescriptor) == null) 1045!(_arySVS[k].info is PropertyDescriptor)) 1145PropertyDescriptor pd; 1316if (cacheAccessor && info != null && !(info is PropertyDescriptor)) 1595void SetPropertyInfo(object info, out PropertyInfo pi, out PropertyDescriptor pd, out DependencyProperty dp, out DynamicPropertyAccessor dpa) 1607pd = info as PropertyDescriptor; 1618PropertyDescriptor pd; 1717PropertyDescriptor pd;
MS\Internal\Data\ValueChangedEventManager.cs (21)
67public static void AddListener(object source, IWeakEventListener listener, PropertyDescriptor pd) 78public static void RemoveListener(object source, IWeakEventListener listener, PropertyDescriptor pd) 89public static void AddHandler(object source, EventHandler<ValueChangedEventArgs> handler, PropertyDescriptor pd) 101public static void RemoveHandler(object source, EventHandler<ValueChangedEventArgs> handler, PropertyDescriptor pd) 157PropertyDescriptor[] keys = new PropertyDescriptor[ic.Count]; 219_toRemove.Add((PropertyDescriptor)ide.Key); 227foreach (PropertyDescriptor key in _toRemove) 299private void PrivateAddListener(object source, IWeakEventListener listener, PropertyDescriptor pd) 307private void PrivateRemoveListener(object source, IWeakEventListener listener, PropertyDescriptor pd) 315private void PrivateAddHandler(object source, EventHandler<ValueChangedEventArgs> handler, PropertyDescriptor pd) 321private void PrivateRemoveHandler(object source, EventHandler<ValueChangedEventArgs> handler, PropertyDescriptor pd) 326private void AddListener(object source, PropertyDescriptor pd, IWeakEventListener listener, EventHandler<ValueChangedEventArgs> handler) 358private void RemoveListener(object source, PropertyDescriptor pd, IWeakEventListener listener, EventHandler<ValueChangedEventArgs> handler) 390List<PropertyDescriptor> _toRemove = new List<PropertyDescriptor>(); 396public ValueChangedRecord(ValueChangedEventManager manager, object source, PropertyDescriptor pd) 538PropertyDescriptor _pd; 552internal ValueChangedEventArgs(PropertyDescriptor pd) 557internal PropertyDescriptor PropertyDescriptor 562private PropertyDescriptor _pd;
MS\Internal\Data\ValueTable.cs (13)
37internal static bool ShouldCache(object item, PropertyDescriptor pd) 55internal object GetValue(object item, PropertyDescriptor pd, bool indexerIsNext) 156internal void RegisterForChanges(object item, PropertyDescriptor pd, DataBindEngine engine) 211foreach (PropertyDescriptor pd1 in GetPropertiesForItem(item)) 220PropertyDescriptor pd; 235void InvalidateCache(object item, PropertyDescriptor pd) 246IEnumerable<PropertyDescriptor> GetPropertiesForItem(object item) 248List<PropertyDescriptor> result = new List<PropertyDescriptor>(); 306public ValueTableKey(object item, PropertyDescriptor pd) 322public PropertyDescriptor PropertyDescriptor 324get { return (PropertyDescriptor)_descriptor.Target; } 341PropertyDescriptor descriptor = this.PropertyDescriptor;
MS\Internal\Data\XDeferredAxisSource.cs (2)
47internal XDeferredAxisSource(object component, PropertyDescriptor pd) 111PropertyDescriptor _propertyDescriptor; // the PD to obtain its elements or descendants
MS\Internal\SystemDataHelper.cs (2)
48internal static bool IsDataSetCollectionProperty(PropertyDescriptor pd) 55internal static object GetValue(object item, PropertyDescriptor pd, bool useFollowParent)
MS\Internal\SystemXmlLinqHelper.cs (2)
33internal static bool IsXLinqCollectionProperty(PropertyDescriptor pd) 41internal static bool IsXLinqNonIdempotentProperty(PropertyDescriptor pd)
MS\Internal\TraceData.cs (1)
288PropertyDescriptor pd => $"{pd.GetType().Name}({pd.Name})",
System\Windows\Controls\ContentPresenter.cs (1)
1144PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor { get { return null; } }
System\Windows\Controls\DataGridAutoGeneratingColumnEventArgs.cs (1)
111typeof(PropertyDescriptor).IsAssignableFrom(value.GetType()) ||
System\Windows\Controls\DataGridColumn.cs (2)
1210PropertyDescriptor pd = itemProperty.Descriptor as PropertyDescriptor;
System\Windows\Data\BindingListCollectionView.cs (1)
2222PropertyDescriptor dd = pdc.Find(sorts[i].PropertyName, true);
System\Windows\Data\CollectionView.cs (2)
1496PropertyDescriptor pd; 1499if ((pd = property as PropertyDescriptor) != null)
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
173System.ComponentModel.PropertyDescriptor System.ComponentModel.ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (1)
98PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (1)
61PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\Primitives\ElementMarkupObject.cs (10)
107foreach (PropertyDescriptor descriptor in TypeDescriptor.GetProperties(_instance)) 213private static bool ShouldSerialize(PropertyDescriptor pd, object instance, XamlDesignerSerializationManager manager) 578private bool PropertyIsAttached(PropertyDescriptor descriptor) 668PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor 679PropertyDescriptor descriptor = this.PropertyDescriptor; 750internal ElementProperty(ElementMarkupObject obj, PropertyDescriptor descriptor) : base(obj) 766public override PropertyDescriptor PropertyDescriptor 962private PropertyDescriptor _descriptor; 1197public ValueSerializer GetValueSerializerFor(PropertyDescriptor descriptor) 1249public PropertyDescriptor PropertyDescriptor
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
148public override PropertyDescriptor PropertyDescriptor
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (3)
134public override PropertyDescriptor PropertyDescriptor 169PropertyDescriptor descriptor = DependencyPropertyDescriptor.FromProperty(_propertyValue.Property, _item.ObjectType); 221private PropertyDescriptor _descriptor;
System\Windows\Markup\Primitives\MarkupWriter.cs (3)
874PropertyDescriptor descriptor = property.PropertyDescriptor; 1463public ValueSerializer GetValueSerializerFor(PropertyDescriptor descriptor) 1498public PropertyDescriptor PropertyDescriptor
System\Windows\Markup\TypeContext.cs (1)
123public PropertyDescriptor PropertyDescriptor
System\Windows\Media\Animation\Storyboard.cs (2)
780else if( propertyAccessor is PropertyDescriptor ) 782return ((PropertyDescriptor)propertyAccessor).Name;
System\Windows\PropertyPath.cs (6)
176PropertyDescriptor pd; 197out DependencyProperty dp, out PropertyInfo pi, out PropertyDescriptor pd, out DynamicObjectAccessor doa) 210else if ((pd = accessor as PropertyDescriptor) != null) 943accessor is PropertyDescriptor || 952PropertyDescriptor pd; 959else if ((pd = accessor as PropertyDescriptor) != null)
System\Windows\PropertyPathConverter.cs (1)
205PropertyDescriptor pd;
System\Windows\TemplateContent.cs (1)
1503PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
PresentationFramework-SystemData (3)
SystemDataExtension.cs (3)
46internal override bool IsDataSetCollectionProperty(PropertyDescriptor pd) 83internal override object GetValue(object item, PropertyDescriptor pd, bool useFollowParent) 144private object GetRawValue(object item, PropertyDescriptor pd, bool useFollowParent)
PresentationFramework-SystemXmlLinq (2)
SystemXmlLinqExtension.cs (2)
46internal override bool IsXLinqCollectionProperty(PropertyDescriptor pd) 60internal override bool IsXLinqNonIdempotentProperty(PropertyDescriptor pd)
ReachFramework (1)
Serialization\Manager\XpsTokenContext.cs (1)
179PropertyDescriptor
System (1)
src\libraries\shims\System\ref\System.cs (1)
380[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.PropertyDescriptor))]
System.ComponentModel.Annotations (10)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (4)
53List<PropertyDescriptor> tempPropertyDescriptors = new List<PropertyDescriptor>(); 54foreach (PropertyDescriptor propDescriptor in originalCollection) 57PropertyDescriptor descriptor = propDescriptor;
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (2)
8private readonly PropertyDescriptor _descriptor; 11public MetadataPropertyDescriptorWrapper(PropertyDescriptor descriptor, Attribute[] newAttributes)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (3)
216foreach (PropertyDescriptor property in properties) 226/// Method to extract only the explicitly specified attributes from a <see cref="PropertyDescriptor"/> 235private static AttributeCollection GetExplicitAttributes(PropertyDescriptor propertyDescriptor)
System\ComponentModel\DataAnnotations\Validator.cs (1)
521foreach (PropertyDescriptor property in properties)
System.ComponentModel.TypeConverter (183)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (3)
32[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 38[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 58foreach (PropertyDescriptor property in base.GetProperties(attributes))
System\ComponentModel\ArrayConverter.cs (2)
45PropertyDescriptor[] props = new PropertyDescriptor[length];
System\ComponentModel\BindingList.cs (9)
401PropertyDescriptor? IBindingList.SortProperty => SortPropertyCore; 403protected virtual PropertyDescriptor? SortPropertyCore => null; 409void IBindingList.ApplySort(PropertyDescriptor prop, ListSortDirection direction) 414protected virtual void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction) 426int IBindingList.Find(PropertyDescriptor prop, object key) => FindCore(prop, key); 428protected virtual int FindCore(PropertyDescriptor prop, object key) 433void IBindingList.AddIndex(PropertyDescriptor prop) 438void IBindingList.RemoveIndex(PropertyDescriptor prop) 522PropertyDescriptor? pd = _itemTypeProperties.Find(e.PropertyName, true);
System\ComponentModel\ComponentResourceManager.cs (1)
172PropertyDescriptor? prop = TypeDescriptorGetProperties(value).Find(propName, IgnoreCase);
System\ComponentModel\CustomTypeDescriptor.cs (5)
124[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 125public virtual PropertyDescriptor? GetDefaultProperty() => _parent?.GetDefaultProperty(); 196[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 244[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 262public virtual object? GetPropertyOwner(PropertyDescriptor? pd) => _parent?.GetPropertyOwner(pd);
System\ComponentModel\Design\DesignerOptionService.cs (8)
53private PropertyDescriptor? GetOptionProperty(string pageName, string valueName) 92PropertyDescriptor? optionProp = GetOptionProperty(pageName, valueName); 102PropertyDescriptor? optionProp = GetOptionProperty(pageName, valueName); 185foreach (PropertyDescriptor prop in props) 201var propArray = new PropertyDescriptor[propList.Count]; 404private readonly PropertyDescriptor _property; 406internal WrappedPropertyDescriptor(PropertyDescriptor property, object target) : base(property.Name, null) 453foreach (PropertyDescriptor p in options.Properties)
System\ComponentModel\Design\IEventPropertyService.cs (2)
30EventDescriptor? GetEvent(PropertyDescriptor property); 40PropertyDescriptor GetEventProperty(EventDescriptor e);
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
45public ExtendedPropertyDescriptor(PropertyDescriptor extender, Attribute[] attributes) : base(extender, attributes)
System\ComponentModel\ExtenderProvidedPropertyAttribute.cs (2)
19internal static ExtenderProvidedPropertyAttribute Create(PropertyDescriptor? extenderProperty, Type? receiverType, IExtenderProvider? provider) 39public PropertyDescriptor? ExtenderProperty { get; private set; }
System\ComponentModel\IBindingList.cs (5)
27PropertyDescriptor? SortProperty { get; } 33void AddIndex(PropertyDescriptor property); 35void ApplySort(PropertyDescriptor property, ListSortDirection direction); 37int Find(PropertyDescriptor property, object key); 39void RemoveIndex(PropertyDescriptor property);
System\ComponentModel\IComNativeDescriptorHandler.cs (1)
20PropertyDescriptor GetDefaultProperty(object component);
System\ComponentModel\ICustomTypeDescriptor.cs (5)
44[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 45PropertyDescriptor? GetDefaultProperty(); 68[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 74[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 80object? GetPropertyOwner(PropertyDescriptor? pd);
System\ComponentModel\ITypeDescriptorContext.cs (1)
25PropertyDescriptor? PropertyDescriptor { get; }
System\ComponentModel\ITypedList.cs (2)
8string GetListName(PropertyDescriptor[]? listAccessors); 10PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[]? listAccessors);
System\ComponentModel\ListChangedEventArgs.cs (3)
15public ListChangedEventArgs(ListChangedType listChangedType, int newIndex, PropertyDescriptor? propDesc) : this(listChangedType, newIndex) 21public ListChangedEventArgs(ListChangedType listChangedType, PropertyDescriptor? propDesc) 40public PropertyDescriptor? PropertyDescriptor { get; }
System\ComponentModel\ListSortDescription.cs (2)
8public ListSortDescription(PropertyDescriptor? property, ListSortDirection direction) 14public PropertyDescriptor? PropertyDescriptor { get; set; }
System\ComponentModel\PropertyDescriptor.cs (5)
25/// Initializes a new instance of the <see cref='System.ComponentModel.PropertyDescriptor'/> class with the specified name and 33/// Initializes a new instance of the <see cref='System.ComponentModel.PropertyDescriptor'/> class with 42/// Initializes a new instance of the <see cref='System.ComponentModel.PropertyDescriptor'/> class with 182/// Compares this to another <see cref='System.ComponentModel.PropertyDescriptor'/> 204if (obj is PropertyDescriptor pd && pd.NameHashCode == NameHashCode
System\ComponentModel\PropertyDescriptorCollection.cs (40)
23private PropertyDescriptor[] _properties; 36public PropertyDescriptorCollection(PropertyDescriptor[]? properties) 40_properties = Array.Empty<PropertyDescriptor>(); 55public PropertyDescriptorCollection(PropertyDescriptor[]? properties, bool readOnly) : this(properties) 60private PropertyDescriptorCollection(PropertyDescriptor[] properties, int propCount, string[]? namedSort, IComparer? comparer) 81public virtual PropertyDescriptor this[int index] 97public virtual PropertyDescriptor? this[string name] => Find(name, false); 99public int Add(PropertyDescriptor value) 122public bool Contains(PropertyDescriptor value) => IndexOf(value) >= 0; 137PropertyDescriptor[] newProps = new PropertyDescriptor[Count]; 160_properties = new PropertyDescriptor[sizeNeeded]; 167PropertyDescriptor[] newProps = new PropertyDescriptor[newSize]; 175public virtual PropertyDescriptor? Find(string name, bool ignoreCase) 179PropertyDescriptor? p = null; 200return (PropertyDescriptor)cached; 232public int IndexOf(PropertyDescriptor? value) => Array.IndexOf(_properties, value, 0, Count); 234public void Insert(int index, PropertyDescriptor value) 250public void Remove(PropertyDescriptor? value) 332List<PropertyDescriptor?> propList = new List<PropertyDescriptor?>(_properties); 340PropertyDescriptor? currentProp = propList[j]; 395PropertyDescriptor[] enumProps = new PropertyDescriptor[Count]; 418if (!(value is PropertyDescriptor newProp)) 458if (value != null && !(value is PropertyDescriptor)) 492Add((PropertyDescriptor)value!); 497_properties[index] = (PropertyDescriptor)value!; 526PropertyDescriptor[] newProps = new PropertyDescriptor[Count]; 541PropertyDescriptor? pd = this[(string)key]; 549int IList.Add(object? value) => Add((PropertyDescriptor)value!); 551bool IList.Contains(object? value) => Contains((PropertyDescriptor)value!); 553int IList.IndexOf(object? value) => IndexOf((PropertyDescriptor)value!); 555void IList.Insert(int index, object? value) => Insert(index, (PropertyDescriptor)value!); 561void IList.Remove(object? value) => Remove((PropertyDescriptor?)value); 579if (value != null && !(value is PropertyDescriptor)) 585_properties[index] = (PropertyDescriptor)value!; 605PropertyDescriptor curProp = _owner[_index];
System\ComponentModel\ReflectPropertyDescriptor.cs (3)
162PropertyDescriptor oldReflectPropertyDescriptor, 566internal void ExtenderResetValue(IExtenderProvider provider, object component, PropertyDescriptor notifyDesc) 622internal void ExtenderSetValue(IExtenderProvider? provider, object? component, object? value, PropertyDescriptor notifyDesc)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (24)
398[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of instance cannot be statically discovered.")] 399internal PropertyDescriptor? GetDefaultProperty([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, object? instance) 526internal static PropertyDescriptor? GetExtendedDefaultProperty() 600List<PropertyDescriptor>? propertyList = null; 604PropertyDescriptor[] propertyArray = ReflectGetExtendedProperties(extenders[idx]); 606propertyList ??= new List<PropertyDescriptor>(propertyArray.Length * extenders.Length); 610PropertyDescriptor prop = propertyArray[propIdx]; 633PropertyDescriptor[] fullArray = new PropertyDescriptor[propertyList.Count]; 887[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 1255private static PropertyDescriptor[] ReflectGetExtendedProperties(IExtenderProvider provider) 1258PropertyDescriptor[]? properties; 1262properties = cache[s_extenderProviderPropertiesKey] as PropertyDescriptor[]; 1327properties = new PropertyDescriptor[extendedProperties.Length]; 1347[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 1348private static PropertyDescriptor[] ReflectGetProperties( 1352private static PropertyDescriptor[] ReflectGetPropertiesFromRegisteredType(Type type) 1357private static PropertyDescriptor[] ReflectGetPropertiesImpl(Type type) 1360PropertyDescriptor[]? properties = (PropertyDescriptor[]?)propertyCache[type]; 1368properties = (PropertyDescriptor[]?)propertyCache[type]; 1382properties = new PropertyDescriptor[propertyInfos.Length]; 1420PropertyDescriptor[] newProperties = new PropertyDescriptor[propertyCount];
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (8)
281[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of instance cannot be statically discovered.")] 282internal PropertyDescriptor? GetDefaultProperty(object? instance) 470[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 478PropertyDescriptor[] propertyArray; 479Dictionary<string, PropertyDescriptor> propertyList = new Dictionary<string, PropertyDescriptor>(10); 486foreach (PropertyDescriptor p in propertyArray) 494propertyArray = new PropertyDescriptor[propertyList.Count];
System\ComponentModel\TypeDescriptor.cs (51)
505[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 506public static PropertyDescriptor CreateProperty( 519[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 520public static PropertyDescriptor CreateProperty( 522PropertyDescriptor oldPropertyDescriptor, 925[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 926public static PropertyDescriptor? GetDefaultProperty( 941[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered.")] 942public static PropertyDescriptor? GetDefaultProperty(object component) => GetDefaultProperty(component, false); 948[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered.")] 949public static PropertyDescriptor? GetDefaultProperty(object component, bool noCustomTypeDesc) 1322[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 1348[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1366var descriptors = new PropertyDescriptor[filteredProperties.Count]; 1378[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered.")] 1396[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered.")] 1407[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1418[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1429[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1505PropertyDescriptor[] propArray = new PropertyDescriptor[results.Count]; 1574PropertyDescriptor[] propArray = new PropertyDescriptor[results.Count]; 1912PropertyDescriptor[] propArray = new PropertyDescriptor[list.Count]; 2096PropertyDescriptor[] propArray = new PropertyDescriptor[list.Count]; 2103throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(PropertyDescriptor).FullName)); 2251PropertyDescriptor[] propArray = new PropertyDescriptor[list.Count]; 2825[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 2826PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() 2848[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 2854[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 2860object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => _instance; 3136[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 3137PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 3181[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 3193[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 3207object? ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) 3559[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 3560PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 3671[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 3714[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 3742object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) 3947[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 3948public PropertyDescriptor? GetDefaultProperty() 3954PropertyDescriptor? defaultProperty; 4083[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage)] 4141[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 4169public object? GetPropertyOwner(PropertyDescriptor? pd)
System.Data.Common (52)
System\Data\Common\DataRecordInternal.cs (2)
333PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 365object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd)
System\Data\Common\DbConnectionStringBuilder.cs (12)
413PropertyDescriptor[] properties = new PropertyDescriptor[descriptors.Count]; 442foreach (PropertyDescriptor reflected in TypeDescriptor.GetProperties(this, true)) 451PropertyDescriptor descriptor = new DbConnectionStringBuilderDescriptor(reflected.Name, 523PropertyDescriptor descriptor = new DbConnectionStringBuilderDescriptor(keyword, 550PropertyDescriptor[] propertiesArray = new PropertyDescriptor[propertyDescriptors.Count]; 556foreach (PropertyDescriptor property in propertyDescriptors) 581PropertyDescriptor[] filteredPropertiesArray = new PropertyDescriptor[index]; 622PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 655object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd)
System\Data\Common\DbDataRecord.cs (2)
86PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null; 104object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\Common\DbEnumerator.cs (2)
95PropertyDescriptor[] props = new PropertyDescriptor[_reader.FieldCount];
System\Data\DataRowView.cs (2)
243PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null; 260object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\DataSet.cs (2)
3342internal static DataTable? FindTable(DataTable? baseTable, PropertyDescriptor[] props, int propStart) 3349PropertyDescriptor currentProp = props[propStart];
System\Data\DataTable.cs (2)
4905PropertyDescriptor[] props = new PropertyDescriptor[columnsCount + relationsCount];
System\Data\DataView.cs (11)
951PropertyDescriptor? IBindingList.SortProperty => GetSortProperty(); 953internal PropertyDescriptor? GetSortProperty() 992void IBindingList.AddIndex(PropertyDescriptor property) => GetFindIndex(property.Name, keepIndex: true); 994void IBindingList.ApplySort(PropertyDescriptor property, ListSortDirection direction) 999int IBindingList.Find(PropertyDescriptor property, object key) 1038void IBindingList.RemoveIndex(PropertyDescriptor property) 1069PropertyDescriptor? property = sort.PropertyDescriptor; 1073throw ExceptionBuilder.ArgumentNull(nameof(PropertyDescriptor)); 1097private static string CreateSortString(PropertyDescriptor property, ListSortDirection direction) 1154string System.ComponentModel.ITypedList.GetListName(PropertyDescriptor[]? listAccessors) 1178PropertyDescriptorCollection System.ComponentModel.ITypedList.GetItemProperties(PropertyDescriptor[]? listAccessors)
System\Data\DataViewManager.cs (8)
221PropertyDescriptor IBindingList.SortProperty 233void IBindingList.AddIndex(PropertyDescriptor property) 238void IBindingList.ApplySort(PropertyDescriptor property, ListSortDirection direction) 243int IBindingList.Find(PropertyDescriptor property, object key) 248void IBindingList.RemoveIndex(PropertyDescriptor property) 259string System.ComponentModel.ITypedList.GetListName(PropertyDescriptor[]? listAccessors) 282PropertyDescriptorCollection System.ComponentModel.ITypedList.GetItemProperties(PropertyDescriptor[]? listAccessors) 332PropertyDescriptor? NullProp = null;
System\Data\DataViewManagerListItemTypeDescriptor.cs (4)
64PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null; 116PropertyDescriptor[]? props = null; 121props = new PropertyDescriptor[tableCount]; 139object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\LinqDataView.cs (1)
247PropertyDescriptor? IBindingList.SortProperty
System\Data\xmlsaver.cs (2)
132internal void AddXdoProperty(PropertyDescriptor pd, object instance, XmlElement root) 227private static bool ContainsDesignerSerializationVisibleAttribute(PropertyDescriptor pd) => pd.Attributes.Contains(DesignerSerializationVisibilityAttribute.Visible);
System\Data\XMLSchema.cs (2)
42PropertyDescriptor? pd = TypeDescriptor.GetProperties(instance)[name]; 289PropertyDescriptor? pd = TypeDescriptor.GetProperties(instance)[name];
System.Xaml (6)
System\Windows\Markup\IValueSerializerContext.cs (1)
35ValueSerializer GetValueSerializerFor(PropertyDescriptor descriptor);
System\Windows\Markup\ValueSerializer.cs (2)
166public static ValueSerializer? GetSerializerFor(PropertyDescriptor descriptor) 219public static ValueSerializer? GetSerializerFor(PropertyDescriptor descriptor, IValueSerializerContext? context)
System\Xaml\Context\ServiceProviderContext.cs (1)
109PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Xaml\XamlObjectReader.cs (2)
2812public PropertyDescriptor PropertyDescriptor 2841public ValueSerializer GetValueSerializerFor(PropertyDescriptor propertyDescriptor)
System.Xaml.Tests (13)
System\Windows\Markup\NameReferenceConverterTests.cs (1)
203public PropertyDescriptor PropertyDescriptor => throw new NotImplementedException();
System\Windows\Markup\ValueSerializerTests.cs (11)
258PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithDateTimeProperty))[0]; 266PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithValueSerializerAttributeProperty))[0]; 274PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithConvertibleProperty))[0]; 286PropertyDescriptor descriptor = TypeDescriptor.GetProperties(type)[0]; 294Assert.Throws<ArgumentNullException>("descriptor", () => ValueSerializer.GetSerializerFor((PropertyDescriptor)null!)); 295Assert.Throws<ArgumentNullException>("descriptor", () => ValueSerializer.GetSerializerFor((PropertyDescriptor)null!, null)); 301PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithInvalidValueSerializerAttributeProperty))[0]; 309PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithValueSerializerAttributeProperty))[0]; 318PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(ClassWithValueSerializerAttributeProperty))[0]; 444public ValueSerializer? GetValueSerializerFor(PropertyDescriptor type) => SerializerResult; 450public PropertyDescriptor PropertyDescriptor => throw new NotImplementedException();
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
49public PropertyDescriptor PropertyDescriptor => throw new NotImplementedException();