1
0
mirror of https://github.com/chylex/Brotli-Builder.git synced 2024-12-22 07:42:47 +01:00
Brotli-Builder/BrotliLib/Exceptions/Contexts/TitledListCtx.cs
2020-04-08 18:12:12 +02:00

22 lines
598 B
C#

using System.Collections;
using System.Text;
namespace BrotliLib.Exceptions.Contexts{
class TitledListCtx : IExceptionContext{
private readonly string title;
private readonly IEnumerable enumerable;
public TitledListCtx(string title, IEnumerable enumerable){
this.title = title;
this.enumerable = enumerable;
}
public void Explain(StringBuilder build){
build.Append(title)
.Append(": [\n ")
.AppendJoin(",\n ", enumerable)
.Append("\n]\n");
}
}
}