Method GetOldEnum
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetOldEnum<TEnum>()
Converts the old raw value to the specified enum type when possible.
public TEnum? GetOldEnum<TEnum>() where TEnum : struct, Enum
Returns
- TEnum?
The parsed enum value, or null when the value is absent or malformed.
Type Parameters
TEnumThe target enum type.