Method GetNewEnum
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetNewEnum<TEnum>()
Converts the new raw value to the specified enum type when possible.
public TEnum? GetNewEnum<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.