After downloading the latest .Net 5 SDK (Preview 2) I'm starting to update my code to it.
I'm using nullable reference types.
I think the nullability annotations could be improved in
|
public XElement(XName name, params object[] content) : this(name, (object)content) { } |
public XElement(XName name, params object[] content) : this(name, (object)content) { } //Currently
public XElement(XName name, params object?[] content) : this(name, (object)content) { } //Fixed
After downloading the latest .Net 5 SDK (Preview 2) I'm starting to update my code to it.
I'm using nullable reference types.
I think the nullability annotations could be improved in
runtime/src/libraries/System.Private.Xml.Linq/src/System/Xml/Linq/XElement.cs
Line 95 in 035b729