< Dice | MacroContext
Difference between revisions of "Dice/MacroContext/Value"
From DiceRoller Documentation
(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...") |
(No difference)
|
Latest revision as of 18:30, 27 April 2017
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.