< Dice‎ | BuiltinFunctions
Revision as of 21:52, 14 August 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|BuiltinFunction.Expand Method (FunctionContext)}} Expands a grouped DieResult into the individual DieResults that comprise it. {{ns}} == Syntax == <syntaxhighlight...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

BuiltinFunction.Expand Method (FunctionContext)

From DiceRoller Documentation

Expands a grouped DieResult into the individual DieResults that comprise it.

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

Syntax

[DiceFunction("expand", Scope = FunctionScope.Group, Timing = FunctionTiming.BeforeSort)]
public static void Expand(
    FunctionContext context
)

Parameters

context
Type: Dice.FunctionContext
The context of the function call.

Exceptions

Exception Condition
DiceException (DiceErrorCode.IncorrectArity) context.Arguments.Count is greater than 0.