Wrap Class Reference
Static methods to wrap around other code.
More...
List of all members.
Public Member Functions |
delegate void | task () |
| Delegate definition necessary to define wrappers.
|
delegate T | task< T > () |
| Delegate definition necessary to define wrappers.
|
Static Public Member Functions |
static void | FormatException (string filename, task t) |
| Catch FormatException and re-throw it including filename.
|
static T | FormatException< T > (string filename, task< T > t) |
| Catch FormatException and re-throw it including filename; generic version.
|
static TimeSpan | MeasureTime (task t) |
| Measure how long an action takes.
|
Detailed Description
Static methods to wrap around other code.
Member Function Documentation
static void FormatException |
( |
string |
filename, |
|
|
task |
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, |
|
|
task< 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 |
( |
task |
t |
) |
[inline, static] |
Measure how long an action takes.
- Parameters:
-
| t | A task defining the action to be measured |
- Returns:
- The TimeSpan it takes to perform the action
Delegate definition necessary to define wrappers.
Delegate definition necessary to define wrappers.
The documentation for this class was generated from the following file: