Skip to content

Commit

Permalink
Add ? to XmlAttribute argument in int? explicit operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jozkee committed Aug 28, 2020
1 parent 7a06e71 commit 7debcd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public static explicit operator int(XAttribute attribute)
/// </returns>
[CLSCompliant(false)]
[return: NotNullIfNotNull("attribute")]
public static explicit operator int?(XAttribute attribute)
public static explicit operator int?(XAttribute? attribute)
{
if (attribute == null) return null;
return XmlConvert.ToInt32(attribute.value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public XAttribute(System.Xml.Linq.XName name, object value) { }
public static explicit operator System.Guid? (System.Xml.Linq.XAttribute? attribute) { throw null; }
[System.CLSCompliantAttribute(false)]
[return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("attribute")]
public static explicit operator int? (System.Xml.Linq.XAttribute attribute) { throw null; }
public static explicit operator int? (System.Xml.Linq.XAttribute? attribute) { throw null; }
[System.CLSCompliantAttribute(false)]
[return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("attribute")]
public static explicit operator long? (System.Xml.Linq.XAttribute? attribute) { throw null; }
Expand Down

0 comments on commit 7debcd0

Please sign in to comment.