C# Class Endjin.Assembly.ChangeDetection.Infrastructure.LazyFormat

Support lazy formatting of strings. This is useful to delay the cration of trace messages until the trace is enabled.
Mostrar archivo Open project: endjin/Endjin.Assembly.ChangeDetection

Public Methods

Method Description
LazyFormat ( Func formatMethod ) : System

Supply the method which will generate a string with captured variables of your enclosing method.

ToString ( ) : string

Return the string generated by the formatMethod.

Method Details

LazyFormat() public method

Supply the method which will generate a string with captured variables of your enclosing method.
public LazyFormat ( Func formatMethod ) : System
formatMethod Func
return System

ToString() public method

Return the string generated by the formatMethod.
public ToString ( ) : string
return string