diff --git a/src/FormSerializationWriter.cs b/src/FormSerializationWriter.cs index 624e8cb..d039620 100644 --- a/src/FormSerializationWriter.cs +++ b/src/FormSerializationWriter.cs @@ -225,11 +225,11 @@ public void WriteEnumValue(string? key, T? value) where T : struct, Enum Enum.GetValues() #else Enum.GetValues(typeof(T)) + .Cast() #endif - .Cast() - .Where(x => value.Value.HasFlag(x)) - .Select(static x => Enum.GetName(typeof(T),x)) - .Select(static x => x.ToFirstCharacterLowerCase()))); + .Where(x => value.Value.HasFlag(x)) + .Select(static x => Enum.GetName(typeof(T),x)) + .Select(static x => x.ToFirstCharacterLowerCase()))); else WriteStringValue(key, value.Value.ToString().ToFirstCharacterLowerCase()); } }