GetFieldNames Method
- Namespace
- SatorImaging.UnityFundamentals
GetFieldNames<TEnum>()
public static ReadOnlySpan<string> GetFieldNames<TEnum>() where TEnum : Enum
Get enum entries as string array.
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.