Vixen
dd8b0a81
csharp
public readonly record struct WaterFactLine

One row of a water panel's derived-numbers block, as the @for keys it.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ The whole record is the key. A FactRow holds no signals, so a binding inside the loop body would have nothing to notice a changed number with — the value is the identity, and a new reading is a new key whose region is built fresh. That is the immutable-data half of the @for rule, and it is the opposite of what VXML2011 teaches a reader who has only met that warning.

⚠ And the slot is in it so that two rows reading the same cannot collide: "Bodies drawn 0" and "Points laid 0" differ, but BuildContext.For has no answer for two equal keys in one loop and this block's contents are a list somebody will add to.

Fields and properties (3)

  • public int Slot

    Where it is in the block.

  • public string Label

    What it is called.

  • public string Value

    And what it reads.

Methods (1)

  • public WaterFactLine(int Slot, string Label, string Value)

    One row of a water panel's derived-numbers block, as the @for keys it.

Used by (1)

  • WaterZoneFactsVixen.Editor.Water