Skip to content

New nullable issue when on .net 9 #600

@FvS-MR

Description

@FvS-MR

Hi,
like in issue #594 i ran into a new nullable issue.

In HtmlNode I see a lot of code like this:

#if NET8_0
HtmlNodeCollection?
#else
HtmlNodeCollection
#endif

This gives me false nullable warnings (return value can not be null regarding the interface) in .net 9 projects.
I think all code like this should be changed to

#IF NET8_0_OR_GREATER

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions