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:
filename the name of the file processed inside t
t the task to be performed
Exceptions:
FormatException Represents 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:
filename the name of the file processed inside t
t the task to be performed
Exceptions:
FormatException Represents 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:
t An 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:
Generated on Thu Apr 5 01:11:39 2012 for MyMediaLite by  doxygen 1.6.3