Skip to content
Concord

Class CoreLibEnumDetours

Namespace
Concord
Assembly
Concord.Orchestration.dll

Routes the Enum static methods through the extended enum registry, so an added member appears to code the adapter never registered a consumer for.

public static class CoreLibEnumDetours
Inheritance
CoreLibEnumDetours
Inherited Members

Remarks

Every detour opens with a registry lookup and returns immediately for an enum no declaration extends, so an unaffected enum pays one dictionary lookup.

String interpolation does not route. $"{value}" and the internal callers behind it skip the public ToString(), so an added member still prints as its number there. Register a Display consumer for text the player sees.

Methods

Install(bool)

Installs the detour set. Calling it twice without Uninstall() does nothing the second time. A method that cannot be detoured logs CONC141 and leaves the rest installed.

public static void Install(bool includeFormat = true)

Parameters

includeFormat bool

Whether to detour Format(Type, object, string). Concord measured this shape at about 0.8 nanoseconds on an unextended enum, so it defaults to on.

Uninstall()

Reverts every detour this class installed.

public static void Uninstall()