< Dice | InternalContext
InternalContext.AddGroupExpression Method (DiceAST)
From DiceRoller Documentation
Add a new group expression to the context, returning an identifier string suitable for DieResult.Data.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
internal string AddGroupExpression(
DiceAST expr
)
Parameters
- expr
- Type: Dice.AST.DiceAST
- Expression to add
Return Value
Type: System.String
An identifier that can be used to retrieve expr again via GetGroupExpression().
Remarks
This method (and GetGroupExpression) should be used instead of directly manipulating GroupExpressions.