C# Class Expl.Auxiliary.ExplDiagnostics

Datei anzeigen Open project: spoulson/Itinerary

Public Methods

Method Description
GetExceptionMessages ( this ex ) : string

Get human readable dump of exception message(s).

InDebug ( System.Action delg ) : void

Execute a delegate in debug build only.

WriteLine ( Func delg ) : void

Write debug text and include the class/method name and time stamp.

In debug mode, this method does as intended. In release mode, the delegate is never executed. Performance overhead to calling code is reduced by not processing the parameters.

WriteLine ( string text ) : void

Write debug text and include the class/method name and time stamp.

Method Details

GetExceptionMessages() public static method

Get human readable dump of exception message(s).
public static GetExceptionMessages ( this ex ) : string
ex this Exception object.
return string

InDebug() public static method

Execute a delegate in debug build only.
public static InDebug ( System.Action delg ) : void
delg System.Action Delegate to execute
return void

WriteLine() public static method

Write debug text and include the class/method name and time stamp.
In debug mode, this method does as intended. In release mode, the delegate is never executed. Performance overhead to calling code is reduced by not processing the parameters.
public static WriteLine ( Func delg ) : void
delg Func Delegate that returns text to write.
return void

WriteLine() public static method

Write debug text and include the class/method name and time stamp.
public static WriteLine ( string text ) : void
text string Text to write.
return void