Difference between revisions of "Dice/ExtensionMethods/GetDescriptionString"

From DiceRoller Documentation
(Created page with "{{APIdoc|ExtensionMethods.GetDescriptionString Method (DiceErrorCode)}} Retrieves the value of the DescriptionAttribute for the given DiceErrorCode. {{...")
(No difference)

Revision as of 18:48, 12 April 2017

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.