MyMediaLite  3.11
Static Public Member Functions | List of all members
Wrap Class Reference

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

Static Public Member Functions

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

Detailed Description

Static methods to wrap around other code.

Member Function Documentation

static void FormatException ( string  filename,
Action  t 
)
inlinestatic

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 
)
inlinestatic

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)
inlinestatic

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: