Provides extension methods for managing python wrapper classes
More...
|
| static PyObject | ValidateImplementationOf< TInterface > (this PyObject model) |
| | Validates that the specified PyObject completely implements the provided interface type More...
|
| |
| static T | InvokeMethod< T > (this PyObject model, string methodName, params object[] args) |
| | Invokes the specified method on the provided PyObject instance with the specified arguments More...
|
| |
| static void | InvokeMethod (this PyObject model, string methodName, params object[] args) |
| | Invokes the specified method on the provided PyObject instance with the specified arguments More...
|
| |
| static T | Invoke< T > (this PyObject method, params object[] args) |
| | Invokes the given PyObject method with the specified arguments More...
|
| |
| static PyObject | Invoke (this PyObject method, params object[] args) |
| | Invokes the given PyObject method with the specified arguments More...
|
| |
Provides extension methods for managing python wrapper classes
Definition at line 28 of file PythonWrapper.cs.
◆ ValidateImplementationOf< TInterface >()
| static PyObject QuantConnect.Python.PythonWrapper.ValidateImplementationOf< TInterface > |
( |
this PyObject |
model | ) |
|
|
static |
Validates that the specified PyObject completely implements the provided interface type
- Template Parameters
-
| TInterface | The interface type |
- Parameters
-
| model | The model implementing the interface type |
Definition at line 35 of file PythonWrapper.cs.
◆ InvokeMethod< T >()
Invokes the specified method on the provided PyObject instance with the specified arguments
- Parameters
-
| model | The PyObject instance |
| methodName | The name of the method to invoke |
| args | The arguments to call the method with |
- Returns
- The return value of the called method converted into the T type
Definition at line 84 of file PythonWrapper.cs.
◆ InvokeMethod()
| static void QuantConnect.Python.PythonWrapper.InvokeMethod |
( |
this PyObject |
model, |
|
|
string |
methodName, |
|
|
params object[] |
args |
|
) |
| |
|
static |
Invokes the specified method on the provided PyObject instance with the specified arguments
- Parameters
-
| model | The PyObject instance |
| methodName | The name of the method to invoke |
| args | The arguments to call the method with |
Definition at line 96 of file PythonWrapper.cs.
◆ Invoke< T >()
Invokes the given PyObject method with the specified arguments
- Parameters
-
| method | The method to invoke |
| args | The arguments to call the method with |
- Returns
- The return value of the called method converted into the T type
Definition at line 107 of file PythonWrapper.cs.
◆ Invoke()
| static PyObject QuantConnect.Python.PythonWrapper.Invoke |
( |
this PyObject |
method, |
|
|
params object[] |
args |
|
) |
| |
|
static |
Invokes the given PyObject method with the specified arguments
- Parameters
-
| method | The method to invoke |
| args | The arguments to call the method with |
Definition at line 118 of file PythonWrapper.cs.
The documentation for this class was generated from the following file: