Make .Clear() consistent with TagHelperOutput
This commit is contained in:
parent
a602b47e26
commit
c62aa147f4
|
|
@ -34,6 +34,7 @@ namespace Microsoft.AspNet.Html.Abstractions
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clears the content.
|
/// Clears the content.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void Clear();
|
/// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
|
||||||
|
IHtmlContentBuilder Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -373,9 +373,10 @@ namespace Microsoft.AspNet.Html.Abstractions.Test
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Clear()
|
public IHtmlContentBuilder Clear()
|
||||||
{
|
{
|
||||||
Entries.Clear();
|
Entries.Clear();
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void WriteTo(TextWriter writer, IHtmlEncoder encoder)
|
public void WriteTo(TextWriter writer, IHtmlEncoder encoder)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue