Interface IFunctional
Represents root interface for all functional interfaces.
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.dll
Syntax
public interface IFunctional
Methods
View SourceDynamicInvoke(scoped ref readonly Variant, int, scoped Variant)
Invokes the functional interface dynamically.
Declaration
void DynamicInvoke(scoped ref readonly Variant args, int count, scoped Variant result)
Parameters
| Type | Name | Description |
|---|---|---|
| Variant | args | The location of the first argument. |
| int | count | The number of arguments. |
| Variant | result | The location of the result. Must be a reference to LocalReference<T> value. |
GetArgument<T>(ref readonly Variant, int)
Gets the argument value.
Declaration
protected static ref readonly T GetArgument<T>(ref readonly Variant args, int index) where T : allows ref struct
Parameters
| Type | Name | Description |
|---|---|---|
| Variant | args | The location of the arguments. |
| int | index | The index of the argument. |
Returns
| Type | Description |
|---|---|
| T | The reference to the argument value. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the argument. |