dotnet / dotnet/dotnet-api-docs

Possibly incorrect documentation on TypeDescriptor.GetConverter(Object, Boolean)

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

Description

The docs currently state the below, for the `noCustomTypeDesc` param.

```
public static System.ComponentModel.TypeConverter GetConverter (object component, bool noCustomTypeDesc);

noCustomTypeDesc
Boolean
true to consider custom type description information; otherwise, false.
```

This is a confusing double negative, but sounds like the invest to what's expected? If I'm setting `noCustomTypeDesc` to true, then I would expect custom type description information NOT to be considered?

---
#### Document Details

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

* ID: c5fcac2f-a3de-b7d4-7fe1-775da77b83a7
* Version Independent ID: 3b5ca2a6-cb4f-281a-0022-187495ed4604
* Content: [TypeDescriptor.GetConverter Method (System.ComponentModel)](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.typedescriptor.getconverter?view=netframework-4.7.2#System_ComponentModel_TypeDescriptor_GetConverter_System_Object_System_Boolean_)
* Content Source: [xml/System.ComponentModel/TypeDescriptor.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.ComponentModel/TypeDescriptor.xml)
* Product: **dotnet-api**
* 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.