MyMediaLite  3.08
Static Public Member Functions
Wrap Class Reference

Static methods to wrap around other code. More...

List of all members.

Static Public Member Functions

static void FormatException (string filename, Action t)
 Catch FormatException and re-throw it including filename.
static T FormatException< T > (string filename, Func< T > t)
 Catch FormatException and re-throw it including filename; generic version.
static TimeSpan MeasureTime (Action t)
 Measure how long an action takes.

Detailed Description

Static methods to wrap around other code.


Member Function Documentation

static void FormatException ( string  filename,
Action  t 
) [inline, static]

Catch FormatException and re-throw it including filename.

Parameters:
filenamethe name of the file processed inside t
tthe task to be performed
Exceptions:
FormatExceptionRepresents errors caused by passing incorrectly formatted arguments or invalid format specifiers to methods.
static T FormatException< T > ( string  filename,
Func< T >  t 
) [inline, static]

Catch FormatException and re-throw it including filename; generic version.

Parameters:
filenamethe name of the file processed inside t
tthe task to be performed
Exceptions:
FormatExceptionRepresents errors caused by passing incorrectly formatted arguments or invalid format specifiers to methods.
static TimeSpan MeasureTime ( Action  t) [inline, static]

Measure how long an action takes.

Parameters:
tAn Action defining the action to be measured
Returns:
The TimeSpan it takes to perform the action

The documentation for this class was generated from the following file: