GetEnumNamesAndValuesAsDictionary Method
- Namespace
- SatorImaging.UnitySourceGenerator
GetEnumNamesAndValuesAsDictionary<TValue>(Type)
public static Dictionary<string, TValue> GetEnumNamesAndValuesAsDictionary<TValue>(Type enumType) where TValue : struct
Enum names and values as a dictionary.
Parameters
enumType
Type
Returns
- Dictionary<string, TValue>
Type Parameters
TValue
int, uint, long or something