C# Class ObjectPrinter.Utilties.LazyString

A way to defer execution of the object printer until the last possible minute. Useful for logging to prevent littering code with IsLevelEnabled calls.
Show file Open project: drewburlingame/ObjectPrinter

Public Methods

Method Description
LazyString ( Func callback ) : System

ToString ( ) : string

Method Details

LazyString() public method

public LazyString ( Func callback ) : System
callback Func
return System

ToString() public method

public ToString ( ) : string
return string