Allow DumpTell() or Dump (title) to dump to a DumpContainer
var someValue = 123;
var dumpContainer = new DumpContainer().Dump();
// I don't know a way to put the content of someValue.DumpTell() or someValue.Dump("My title") to dumpContainer
-
sgmoore commented
You can use `dumpContainer.Content = Util.WithHeading(someValue, "My title");`
or if you prefer you can add an extension method like
`
public static object WithTitle<T>(this T source, [System.Runtime.CompilerServices.CallerArgumentExpression("source")] string? title = null)
{
return Util.WithHeading(source, title);
}
`which allows you to do things like
`
dumpContainer.Content = someValue.WithTitle();
dumpContainer.AppendContent(someValue.WithTitle("My title"));
`