< Dice‎ | AST‎ | DiceAST

DiceAST.UnderlyingRollNode Property

From DiceRoller Documentation

Gets the roll node underneath this node, unless this node is a roll node of some sort.

  • Namespace: Dice.AST
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

protected internal virtual DiceAST UnderlyingRollNode { get; }

Property Value

Type: Dice.AST.DiceAST

The roll node underneath this node, unless this node is a roll node of some sort.

Remarks

The default implementation of UnderlyingRollNode returns this. If you are implementing an intermediate node (such as a new extra), you should override this to return Expression.UnderlyingRollNode (assuming your node's reference to your child is named Expression).