Class ExtendedEnum<TEnum>
- Namespace
- Concord
- Assembly
- Concord.Enums.dll
Base type for a patch declaration that adds members to an existing enum. A declaration whose base is this type holds member fields, not injections.
public abstract class ExtendedEnum<TEnum> where TEnum : struct, Enum
Type Parameters
TEnumThe enum the declaration extends.
- Inheritance
-
ExtendedEnum<TEnum>
- Inherited Members
Remarks
New members do not reach a switch in code that is already compiled, and mod code cannot
switch on them either, because a C# case label needs a compile-time constant. Use if.