CapturedValue
Holds the one child a snapshot captured for a relation, if it read it.
Source and package
- Qualified name
-
LibTmux. Captured Value - Namespace
- LibTmux
- Package
- LibTmux
- Source
- src/LibTmux/Snapshots/CapturedValue.cs
-
Description
A relation that holds at most one child says so in its type. An uncaptured value is not an absent one: reading
Valuewhen the snapshot never looked throwsIncompleteSnapshotExceptionrather than answering null, so a caller cannot mistake unread state for absent state.- Type parameters
-
-
Constraint class
The captured child type.
-
Properties4
| Name | Type | Description |
|---|---|---|
| IsCaptured | bool | Gets whether the snapshot read this relation. |
| Value | T | Gets the captured child. |
| CapturedDepth | Snapshot | 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.