< Dice‎ | MacroRegistry
Revision as of 21:50, 15 September 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|MacroRegistry.RegisterType Method Overloads}} Registers all public methods marked with {{l|DiceMacroAttribute}} on the type. {{ns}} == Overloads == {| class="wikita...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MacroRegistry.RegisterType Method Overloads

From DiceRoller Documentation

Registers all public methods marked with DiceMacroAttribute on the type.

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

Overloads

Name Description
RegisterType(Type) Registers all public static methods marked with DiceMacroAttribute on the type.
RegisterType<T>(T) Registers all public static and instance methods marked with the DiceMacroAttribute on the type, using the passed-in object when calling instance methods.

Remarks

The first overload only looks at public static methods whereas the second overload registers both public static methods as well as public instance methods. The object passed to the second overload is used when invoking instance methods. As such, the type does not need to have any accessible constructor.