mirror of
https://github.com/chylex/Brotli-Builder.git
synced 2024-12-22 07:42:47 +01:00
22 lines
598 B
C#
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");
|
|
}
|
|
}
|
|
}
|