Skip to content

Commit

Permalink
Annotate IHtmlString.ToHtmlString's return as nullable (#85742)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored May 4, 2023
1 parent 7997445 commit 2328c12
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 @@ -67,6 +67,6 @@ public static void HtmlEncode(string? s, System.IO.TextWriter output) { }
}
public partial interface IHtmlString
{
string ToHtmlString();
string? ToHtmlString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public interface IHtmlString
{
/// <summary>Returns an HTML-encoded string.</summary>
/// <returns>An HTML-encoded string.</returns>
string ToHtmlString();
string? ToHtmlString();
}
}

0 comments on commit 2328c12

Please sign in to comment.