< Dice‎ | InternalContext
Revision as of 20:04, 27 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|InternalContext.AddGroupExpression Method (DiceAST)}} Add a new group expression to the context, returning an identifier string suitable for Dice/DieResult/Data|Die...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.