< Dice‎ | MacroContext
Revision as of 18:23, 27 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|MacroContext Constructor (String)}} Constructs a new instance of MacroContext. {{ns}} == Syntax == <syntaxhighlight lang="C#"> internal MacroContext( string par...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MacroContext Constructor (String)

From DiceRoller Documentation

Constructs a new instance of MacroContext.

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

Syntax

internal MacroContext(
    string param
)

Parameters

param
Type: System.String
The macro's text.

Exceptions

Exception Condition
ArgumentNullException param is null.

Remarks

Value is initialized to Decimal.MinValue, Values is initialized to null, and ValueType is initialized to ResultType.Total. The function's callback must modify Value to some other value, and may modify Values and ValueType if the defaults are insufficient. See the documentation for Values and ValueType for more details on how they interact if they are left at their defaults.