Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeDescriptor.GetProperties should not have nullable items #527

Closed
virzak opened this issue Dec 4, 2019 · 2 comments
Closed

TypeDescriptor.GetProperties should not have nullable items #527

virzak opened this issue Dec 4, 2019 · 2 comments
Labels
area-System.ComponentModel untriaged New issue has not been triaged by the area owner

Comments

@virzak
Copy link
Contributor

virzak commented Dec 4, 2019

Version Used:
VS 16.4, .Net Core 3.1

Steps to Reproduce:

var allProperties =
    TypeDescriptor.GetProperties(typeof(T));

var pds = new List<PropertyDescriptor>();

foreach (PropertyDescriptor prop in allProperties)
{
}

Expected Behavior:
No warnings

Actual Behavior:
CS8606 // Possible null reference assignment to iteration variable


How can any PropertyDescriptor be null?

@jinujoseph
Copy link

@jaredpar do you have access to move to runtime repo

@jaredpar jaredpar transferred this issue from dotnet/roslyn Dec 4, 2019
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.ComponentModel untriaged New issue has not been triaged by the area owner labels Dec 4, 2019
@ericstj
Copy link
Member

ericstj commented Jul 9, 2020

We haven't annotated TypeConverter assembly yet. See #2339

@ericstj ericstj closed this as completed Jul 9, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.ComponentModel untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

4 participants