ExtensionMethods.GetDescriptionString Method (DiceErrorCode)

From DiceRoller Documentation

Retrieves the value of the DescriptionAttribute for the given DiceErrorCode.

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

Syntax

internal static string GetDescriptionString(
    this DiceErrorCode code
)

Parameters

code
Type: Dice.DiceErrorCode
The error code to retrieve the description of.

Return Value

Type: System.String

The value of the DiceErrorCode's DescriptionAttribute.