Make .Clear() consistent with TagHelperOutput
This commit is contained in:
parent
a602b47e26
commit
c62aa147f4
|
|
@ -34,6 +34,7 @@ namespace Microsoft.AspNet.Html.Abstractions
|
|||
/// <summary>
|
||||
/// Clears the content.
|
||||
/// </summary>
|
||||
void Clear();
|
||||
/// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
|
||||
IHtmlContentBuilder Clear();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue