< Dice‎ | FunctionRegistry
Revision as of 22:22, 27 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|FunctionRegistry.Get Method (String, FunctionScope)}} Retrieves the registration information for the given registered function. {{ns}} == Syntax == <syntaxhighlight...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

FunctionRegistry.Get Method (String, FunctionScope)

From DiceRoller Documentation

Retrieves the registration information for the given registered function.

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

Syntax

internal (string name, FunctionTiming timing, FunctionCallback callback) Get(
    string lname,
    FunctionScope scope
)

Parameters

lname
Type: System.String
The name of the function to obtain, case-insensitive.
scope
Type: Dice.FunctionScope
The scope of the function to obtain.

Return Value

Type: System.ValueTuple<System.String, Dice.FunctionTiming, Dice.FunctionCallback>

Function registration information consisting of the properly-cased function name, the function timing, and the callback for the function.