Class BindingKnowledge
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
handleIBindingHandleThe binding being read.
Returns
- IBindingHandle
handleitself 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
sourceVBTypedValueThe value being assigned.
Returns
NewCell(IRuntimeValue, bool)
A new cell that holds value, and whether it is known.
public static ValueBindingHandle NewCell(IRuntimeValue value, bool isKnown)
Parameters
valueIRuntimeValueThe runtime value to hold.
isKnownboolWhether it is known.
Returns
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
handleIBindingHandleThe binding to write to.
resolverISymbolResolverThe resolver the binding writes through.
sourceVBTypedValueThe 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
handleIBindingHandleThe binding to write to.
resolverISymbolResolverThe resolver the binding writes through.
valueIRuntimeValueThe runtime value to store.
isKnownboolWhether it is known.
Remarks
👉 A binding that does not keep whether its value is known is written to as it always was.