Table of Contents

Class BindingKnowledge

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

Reading and writing a binding without losing whether the value is known (IKnowledgeBinding).

public static class BindingKnowledge
Inheritance
BindingKnowledge
Inherited Members

Methods

ForReading(IBindingHandle)

The binding a value that is read from handle is bound to.

public static IBindingHandle ForReading(this IBindingHandle handle)

Parameters

handle IBindingHandle

The binding being read.

Returns

IBindingHandle

handle itself when what it holds is known. When it is not, a detached binding to the same assumed value that is not known and never will be: the cell may be assigned a known value afterwards, which must not make a value read before look known.

NewCell(VBTypedValue)

A new cell that holds the value of source, known or not as source is: the cell an element of an array, or a field, is given when it is assigned a cell of its own.

public static ValueBindingHandle NewCell(VBTypedValue source)

Parameters

source VBTypedValue

The value being assigned.

Returns

ValueBindingHandle

NewCell(IRuntimeValue, bool)

A new cell that holds value, and whether it is known.

public static ValueBindingHandle NewCell(IRuntimeValue value, bool isKnown)

Parameters

value IRuntimeValue

The runtime value to hold.

isKnown bool

Whether it is known.

Returns

ValueBindingHandle

Store(IBindingHandle, ISymbolResolver, VBTypedValue)

Stores the value of source in handle, known or not as source is.

public static void Store(this IBindingHandle handle, ISymbolResolver resolver, VBTypedValue source)

Parameters

handle IBindingHandle

The binding to write to.

resolver ISymbolResolver

The resolver the binding writes through.

source VBTypedValue

The value being assigned.

Store(IBindingHandle, ISymbolResolver, IRuntimeValue, bool)

Stores value in handle, and whether it is known where the binding keeps that.

public static void Store(this IBindingHandle handle, ISymbolResolver resolver, IRuntimeValue value, bool isKnown)

Parameters

handle IBindingHandle

The binding to write to.

resolver ISymbolResolver

The resolver the binding writes through.

value IRuntimeValue

The runtime value to store.

isKnown bool

Whether it is known.

Remarks

👉 A binding that does not keep whether its value is known is written to as it always was.