< Dice
Difference between revisions of "Dice/ExtensionMethods"
From DiceRoller Documentation
| Line 21: | Line 21: | ||
|- | |- | ||
| {{internal}} {{static}} {{method}} || [[/IsRoll|IsRoll(DieType)]] || Determines whether or not the [[Dice/DieType|DieType]] represents a roll. | | {{internal}} {{static}} {{method}} || [[/IsRoll|IsRoll(DieType)]] || Determines whether or not the [[Dice/DieType|DieType]] represents a roll. | ||
| + | |- | ||
| + | | {{internal}} {{static}} {{method}} || [[/IsUnary|IsUnary(MathOp)]] || Determines whether or not the [[Dice/AST/MathOp|MathOp]] is a unary operator. | ||
|- | |- | ||
| {{internal}} {{static}} {{method}} || [[/MaybeAddPlus|MaybeAddPlus(List<DieResult>)]] || Adds a SpecialDie.Add die to the values list unless the values list is empty or the last value is an open paren. | | {{internal}} {{static}} {{method}} || [[/MaybeAddPlus|MaybeAddPlus(List<DieResult>)]] || Adds a SpecialDie.Add die to the values list unless the values list is empty or the last value is an open paren. | ||
|} | |} | ||
Latest revision as of 18:22, 17 April 2017
Internal extension methods that are not useful for general consumption.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Inheritance Hierarchy
System.Object
- Dice.ExtensionMethods
Syntax
internal static class ExtensionMethods
Methods
| Name | Description | |
|---|---|---|
| S | GetDescriptionString(DiceErrorCode) | Retrieves the value of the DescriptionAttribute for the given DiceErrorCode. |
| S | IsRoll(DieType) | Determines whether or not the DieType represents a roll. |
| S | IsUnary(MathOp) | Determines whether or not the MathOp is a unary operator. |
| S | MaybeAddPlus(List<DieResult>) | Adds a SpecialDie.Add die to the values list unless the values list is empty or the last value is an open paren. |