Skip to content

System.ComponentModel.ICustomTypeDescriptor.GetConverter have incorrect nullable annotation #69229

Closed
@jl0pd

Description

@jl0pd

Interface System.ComponentModel.ICustomTypeDescriptor have nullable annotations, but method GetConverter is wrongly annotated to return non-null value, while documentation says it could return null:

Returns
A TypeConverter that is the converter for this object, or null if there is no TypeConverter for this object

I propose to mark return value as nullable. It will be breaking change, but people would get NullReferenceException anyway if they wont check for null

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions