Class ObjectExtensions
Inheritance
System.Object
ObjectExtensions
Assembly: Paradigm.ORM.Data.dll
Syntax
public static class ObjectExtensions : object
Methods
|
Improve this Doc
View Source
ThrowIfFails<TException>(Object, Action, String)
Declaration
public static void ThrowIfFails<TException>(this object value, Action action, string message = null)where TException : Exception
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
| Action |
action |
|
| System.String |
message |
|
Type Parameters
| Name |
Description |
| TException |
|
|
Improve this Doc
View Source
ThrowIfFails<TException, TResult>(Object, Func<TResult>, String)
Declaration
public static TResult ThrowIfFails<TException, TResult>(this object value, Func<TResult> action, string message = null)where TException : Exception
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
| Func<TResult> |
action |
|
| System.String |
message |
|
Returns
Type Parameters
| Name |
Description |
| TException |
|
| TResult |
|
|
Improve this Doc
View Source
ThrowIfFailsAsync<TException>(Object, Func<Task>, String)
Declaration
public static Task ThrowIfFailsAsync<TException>(this object value, Func<Task> action, string message = null)where TException : Exception
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
| Func<Task> |
action |
|
| System.String |
message |
|
Returns
Type Parameters
| Name |
Description |
| TException |
|
|
Improve this Doc
View Source
ThrowIfFailsAsync<TException, TResult>(Object, Func<Task<TResult>>, String)
Declaration
public static Task<TResult> ThrowIfFailsAsync<TException, TResult>(this object value, Func<Task<TResult>> action, string message = null)where TException : Exception
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
| Func<Task<TResult>> |
action |
|
| System.String |
message |
|
Returns
| Type |
Description |
| Task<TResult> |
|
Type Parameters
| Name |
Description |
| TException |
|
| TResult |
|