Static methods to wrap around other code.
More...
|
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...
|
|
Static methods to wrap around other code.
static void FormatException |
( |
string |
filename, |
|
|
Action |
t |
|
) |
| |
|
inlinestatic |
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. |
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 | ) |
|
|
inlinestatic |
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: