Home

Feature Suggestion: DumpContainer<T>

I use Util.OnDemand a lot, when making intermediate objects, so that I can have expandable reporting sections.

I'd like to be able to access the inner values sometimes, in other statements. It would be handy if Util.OnDemand(string desc, Func<T> func) returned a DumpContainer, rather than a DumpContainer, where

class DumpContainer : DumpContainer
{
public T Content {get{ return (T) base.Content ; }}
}

Thanks for listening!

Sign In or Register to comment.