Make .Clear() consistent with TagHelperOutput

This commit is contained in:
Ryan Nowak 2015-09-25 17:17:28 -07:00
parent a602b47e26
commit c62aa147f4
2 changed files with 4 additions and 2 deletions

View File

@ -34,6 +34,7 @@ namespace Microsoft.AspNet.Html.Abstractions
/// <summary>
/// Clears the content.
/// </summary>
void Clear();
/// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
IHtmlContentBuilder Clear();
}
}

View File

@ -373,9 +373,10 @@ namespace Microsoft.AspNet.Html.Abstractions.Test
return this;
}
public void Clear()
public IHtmlContentBuilder Clear()
{
Entries.Clear();
return this;
}
public void WriteTo(TextWriter writer, IHtmlEncoder encoder)