dotnet / dotnet/dotnet-api-docs

This is a issue

Open
#784 3 comments 0 reactions 0 assignees View on GitHub
.net/prod area-System.ComponentModel Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

There are 2 PropertyDescriptors in PropertyDescriptorCollection, if PropertyDescriptor.Name is same, the IndexOf() always return the first one. Why?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 09d672e1-f1b4-a6ba-be3d-939077d8a822
* Version Independent ID: 6791dce7-e018-4ae9-1181-1ed94c0c16d1
* Content: [PropertyDescriptorCollection.IndexOf(PropertyDescriptor) Method (System.ComponentModel)](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.propertydescriptorcollection.indexof?view=netframework-4.7.1#System_ComponentModel_PropertyDescriptorCollection_IndexOf_System_ComponentModel_PropertyDescriptor_)
* Content Source: [xml/System.ComponentModel/PropertyDescriptorCollection.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.ComponentModel/PropertyDescriptorCollection.xml)
* Product: **.net**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.