Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

class libtmux-dotnet

CapturedValue

Holds the one child a snapshot captured for a relation, if it read it.

Source and package
Qualified name
LibTmux.CapturedValue
Namespace
LibTmux
Package
LibTmux
Source
src/LibTmux/Snapshots/CapturedValue.cs
class LibTmux.CapturedValue

Description

A relation that holds at most one child says so in its type. An uncaptured value is not an absent one: reading Value when the snapshot never looked throws IncompleteSnapshotException rather than answering null, so a caller cannot mistake unread state for absent state.

Type parameters
  • T

    Constraint class

    The captured child type.

Properties4

CapturedValue properties
NameTypeDescription
IsCaptured bool Gets whether the snapshot read this relation.
Value T Gets the captured child.
CapturedDepth SnapshotDepth Gets the depth the owning snapshot reached.
Relation string Gets the relation name this instance carries.

Members2 members

  • OrNull Gets the captured child, or null when the snapshot never read it.
  • TryGetValue Tries to read the captured child.
Esc
Search in

Type to search.

Reference previewOpen reference