Table of Contents

Interface ICallableBinding

Namespace
RDCore.SDK.Model.Values.Bindings
Assembly
RDCore.SDK.dll

A binding that is reached by invoking it, and that reports what happened rather than throwing.

public interface ICallableBinding : IBindingHandle
Inherited Members

Remarks

Invoke(ISymbolResolver, IRuntimeValue[]) throws a run-time error, because it has only an IRuntimeValue to return; the semantics layer never throws, and needs the error in the result. Both callable bindings have always had a Call that does that — this is the shape they share, so a call site can hold one without knowing whether the code behind it is the workspace's.

Properties

Member

The member this binding invokes.

VBTypeMemberSymbol Member { get; }

Property Value

VBTypeMemberSymbol

Methods

Call(ISymbolResolver, IRuntimeValue[])

Invokes it and returns the outcome: the value it yielded, or the run-time error it raised.

RuntimeSemanticsEvaluationResult Call(ISymbolResolver resolver, IRuntimeValue[] args)

Parameters

resolver ISymbolResolver

A read-only interface over the current execution context.

args IRuntimeValue[]

The arguments of the call, without the receiver, which the binding passes itself.

Returns

RuntimeSemanticsEvaluationResult