DynamicInvoke Module

Reflection based dynamic invocation of functions and related helpers

Types

Type Description

InvokeResult

Functions and values

Function or value Description

getFunctionDomain t

Full Usage: getFunctionDomain t

Parameters:
Returns: Type list

Returns an array of input types (the domain) for the given function type (without the range)

t : Type
Returns: Type list

getFunctionRange t

Full Usage: getFunctionRange t

Parameters:
Returns: Type

Returns an array of input types (the domain) for the given function type (without the range)

t : Type
Returns: Type

invokeDynamic fn args

Full Usage: invokeDynamic fn args

Parameters:
    fn : obj - an obj type representing the function to dynamically invoke. Internally a check is performed if it is a FSharp function - and if true - it will be consequitively be invoked with the arguments provided by args
    args : seq<obj> - a sequence or boxed function arguments

Returns: Result<'FunctionResult, Exception>

Invokes the given function with the given arguments (passed as boxed values)

fn : obj

an obj type representing the function to dynamically invoke. Internally a check is performed if it is a FSharp function - and if true - it will be consequitively be invoked with the arguments provided by args

args : seq<obj>

a sequence or boxed function arguments

Returns: Result<'FunctionResult, Exception>

isIConvertible t

Full Usage: isIConvertible t

Parameters:
Returns: bool

Returns true if the given type implements the IConvertible interface

t : Type
Returns: bool

isIConvertibleSeq t

Full Usage: isIConvertibleSeq t

Parameters:
Returns: bool

Returns true if the given type implements the IEnumerable interface and the type contained in the collection implements the IConvertible interface

t : Type
Returns: bool

isSeq t

Full Usage: isSeq t

Parameters:
Returns: bool

Returns true if the given type implements the IEnumerable interface

t : Type
Returns: bool