Difference between revisions of "Dice/ExtensionMethods"

From DiceRoller Documentation
(Created page with "{{APIdoc|ExtensionMethods Class}} Internal extension methods that are not useful for general consumption. {{ns}} == Inheritance Hierarchy == System.Object : Dice.ExtensionMe...")
 
 
(2 intermediate revisions by the same user not shown)
Line 18: Line 18:
 
! Name !! Description
 
! Name !! Description
 
|-
 
|-
| {{internal}} {{static}} {{method}} || [[/GetDescriptionString|GetDescriptionString]] || Retrieves the value of the DescriptionAttribute for the given [[Dice/DiceErrorCode|DiceErrorCode]].
+
| {{internal}} {{static}} {{method}} || [[/GetDescriptionString|GetDescriptionString(DiceErrorCode)]] || Retrieves the value of the DescriptionAttribute for the given [[Dice/DiceErrorCode|DiceErrorCode]].
 +
|-
 +
| {{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.
 
|}
 
|}

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.