Show / Hide Table of Contents

Interface IFunctional

Represents root interface for all functional interfaces.

Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.dll
Syntax
public interface IFunctional

Methods

View Source

DynamicInvoke(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.

View Source

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.

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾