FSharp.Interop.Dynamic


Dyn

Namespace: FSharp.Interop.Dynamic

Functions backing the operators and more

Functions and values

Function or valueDescription
addAssignMember target memberName value
Signature: target:obj -> memberName:string -> value:obj -> unit

OBSOLETE

explicitConvert target
Signature: target:obj -> 'TResult
Type parameters: 'TResult

explicit convert via inferred type

explicitConvertTo convertType target
Signature: convertType:Type -> target:obj -> 'TResult
Type parameters: 'TResult

explicit convert via reflected type

get propertyName target
Signature: propertyName:string -> target:obj -> 'TResult
Type parameters: 'TResult
getChain chainOfMembers target
Signature: chainOfMembers:seq<string> -> target:obj -> 'TResult
Type parameters: 'TResult
getIndex target indexers
Signature: target:obj -> indexers:seq<'T> -> 'TResult
Type parameters: 'T, 'TResult

OBSOLETE

getIndexer indexers target
Signature: indexers:seq<'T> -> target:obj -> 'TResult
Type parameters: 'T, 'TResult

dynamically call get index

implicitConvert target
Signature: target:obj -> 'TResult
Type parameters: 'TResult

implict convert via inferred type

implicitConvertTo convertType target
Signature: convertType:Type -> target:obj -> 'TResult
Type parameters: 'TResult

implict convert via reflected type

invocation target memberName
Signature: target:obj -> memberName:Calling -> 'TResult
Type parameters: 'TResult

main workhouse method; Some(methodName) or just None to invoke without name; infered casting with automatic implicit convert. target not last because result could be infered to be fsharp style curried function

invoke target memberName
Signature: target:obj -> memberName:string option -> 'TResult
Type parameters: 'TResult

OBSOLETE

invokeDirect value target
Signature: value:'a -> target:obj -> 'TResult
Type parameters: 'a, 'TResult

allows result to be called like a function

invokeGeneric (...)
Signature: memberName:string -> typeArgs:seq<Type> -> value:'a -> target:obj -> 'TResult
Type parameters: 'a, 'TResult

calls member and specify's generic parameters and whose result can be called like a function

invokeMember memberName value target
Signature: memberName:string -> value:'a -> target:obj -> 'TResult
Type parameters: 'a, 'TResult

calls member whose result can be called like a function

memberAddAssign memberName value target
Signature: memberName:string -> value:obj -> target:obj -> unit

Dynamically call += on member

memberSubtractAssign (...)
Signature: memberName:string -> value:obj -> target:obj -> unit

Dynamically call -= on member

namedArg name argValue
Signature: name:string -> argValue:obj -> InvokeArg

allow marking args with names for dlr invoke

set propertyName value target
Signature: propertyName:string -> value:obj -> target:obj -> unit
setChain chainOfMembers value target
Signature: chainOfMembers:seq<string> -> value:obj -> target:obj -> unit
setIndex target indexers value
Signature: target:obj -> indexers:seq<'T> -> value:obj -> unit
Type parameters: 'T

OBSOLETE

setIndexer indexers value target
Signature: indexers:seq<'T> -> value:obj -> target:obj -> unit
Type parameters: 'T
staticContext target
Signature: target:Type -> InvokeContext

allow access to static context for dynamic invocation of static methods

staticTarget
Signature: InvokeContext
Type parameters: 'TTarget
subtractAssignMember (...)
Signature: target:obj -> memberName:string -> value:obj -> unit

OBSOLETE

Fork me on GitHub