Enables simple invocation of methods against the contained object using late binding.
More...
|
| | LateBoundObject (object instance) |
| | Contains the provided object within a new LateBoundObject.
|
| object? | CallMethodIfImplemented (string method) |
| | Uses reflection to dynamically invoke a method if that method is implemented on the target object.
|
| object? | CallMethodIfImplemented (string method, params object[] parameters) |
| | Uses reflection to dynamically invoke a method if that method is implemented on the target object.
|
| object? | CallMethod (string method) |
| | Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the target object.
|
| object? | CallMethod (string method, params object?[]? parameters) |
| | Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the target object.
|
| async Task | CallMethodTryAsync (string methodName) |
| | Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method.
|
| async Task | CallMethodTryAsync (string methodName, params object?[]? parameters) |
| | Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method.
|
| async Task | CallMethodTryAsyncDI< T > (bool isSync, params object?[]? parameters) |
| | Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method.
|
Enables simple invocation of methods against the contained object using late binding.
◆ LateBoundObject()
| Csla.Reflection.LateBoundObject.LateBoundObject |
( |
object | instance | ) |
|
|
inline |
Contains the provided object within a new LateBoundObject.
- Parameters
-
| instance | Object to contain. |
- Exceptions
-
| ArgumentNullException | instance is null. |
◆ CallMethod() [1/2]
| object? Csla.Reflection.LateBoundObject.CallMethod |
( |
string | method | ) |
|
|
inline |
Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the target object.
- Parameters
-
| method | Name of the method. |
- Exceptions
-
| ArgumentException | method is null, string.Empty or only consists of white spaces. |
◆ CallMethod() [2/2]
| object? Csla.Reflection.LateBoundObject.CallMethod |
( |
string | method, |
|
|
params object??[] | parameters ) |
|
inline |
Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the target object.
- Parameters
-
| method | Name of the method. |
| parameters | Parameters to pass to method. |
- Exceptions
-
| ArgumentException | method is null, string.Empty or only consists of white spaces. |
◆ CallMethodIfImplemented() [1/2]
| object? Csla.Reflection.LateBoundObject.CallMethodIfImplemented |
( |
string | method | ) |
|
|
inline |
Uses reflection to dynamically invoke a method if that method is implemented on the target object.
- Parameters
-
| method | Name of the method. |
- Exceptions
-
| ArgumentException | method is null, string.Empty or only consists of white spaces. |
◆ CallMethodIfImplemented() [2/2]
| object? Csla.Reflection.LateBoundObject.CallMethodIfImplemented |
( |
string | method, |
|
|
params object[] | parameters ) |
|
inline |
Uses reflection to dynamically invoke a method if that method is implemented on the target object.
- Parameters
-
| method | Name of the method. |
| parameters | Parameters to pass to method. |
- Exceptions
-
| ArgumentException | method is null, string.Empty or only consists of white spaces. |
◆ CallMethodTryAsync() [1/2]
| async Task Csla.Reflection.LateBoundObject.CallMethodTryAsync |
( |
string | methodName | ) |
|
|
inline |
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method.
- Parameters
-
| methodName | Name of the method. |
- Exceptions
-
| ArgumentException | methodName is null, string.Empty or only consists of white spaces. |
◆ CallMethodTryAsync() [2/2]
| async Task Csla.Reflection.LateBoundObject.CallMethodTryAsync |
( |
string | methodName, |
|
|
params object??[] | parameters ) |
|
inline |
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method.
- Parameters
-
| methodName | Name of the method. |
| parameters | Parameters to pass to method. |
- Exceptions
-
| ArgumentException | methodName is null, string.Empty or only consists of white spaces. |
◆ CallMethodTryAsyncDI< T >()
| async Task Csla.Reflection.LateBoundObject.CallMethodTryAsyncDI< T > |
( |
bool | isSync, |
|
|
params object??[] | parameters ) |
|
inline |
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method.
- Parameters
-
| isSync | Is client calling this synchronously |
| parameters | Parameters to pass to method. |
- Exceptions
-
- Type Constraints
-
| T | : | DataPortalOperationAttribute | |
◆ Instance
| object Csla.Reflection.LateBoundObject.Instance |
|
get |
The documentation for this class was generated from the following file: