ExtensionMethods Class

From DiceRoller Documentation

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.