GetDisplayNames Method
- Namespace
- SatorImaging.UnityFundamentals
GetDisplayNames<TEnum>()
public static ReadOnlySpan<string> GetDisplayNames<TEnum>() where TEnum : Enum
To customize display names, call CustomDisplayNameFactory(Type, Func<Type, string, ulong, string>) BEFORE calling other StrictEnum method.
Returns
Type Parameters
TEnum
Remarks
NOTE: entries are sorted by its underlying value.
NOTE: enum entries are constant value fields and those names are changed when assembly is obfuscated.
Consider add ObfuscationAttribute to enum type declaration to prevent name changes.