< Dice‎ | MacroContext
Revision as of 18:30, 27 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|MacroContext.Value Property}} Gets or sets the result of the macro. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public decimal Value { get; set; } </syntaxhighl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MacroContext.Value Property

From DiceRoller Documentation

Gets or sets the result of the macro.

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

Syntax

public decimal Value { get; set; }

Property Value

Type: System.Decimal

The result of the macro.

Remarks

If none of the macro callbacks set Value to something other than Decimal.MinValue, a DiceException being thrown with DiceErrorCode.InvalidMacro. This indicates that the user specified an unrecognized macro, and does not necessarily indicate an error in your code.