diff --git a/System/System.Text.Json/JsonConverterAttribute.cs b/System/System.Text.Json/JsonConverterAttribute.cs index 0c40645..18c025f 100644 --- a/System/System.Text.Json/JsonConverterAttribute.cs +++ b/System/System.Text.Json/JsonConverterAttribute.cs @@ -5,10 +5,10 @@ namespace System.Text.Json; public class JsonConverterAttribute(params object[] converterParameters) : JConverterAttribute(typeof(T)) { - public object[] ConverterParameters { get; init; } = converterParameters; - - public override JConverter? CreateConverter(type typeToConvert) - { - return Activator.CreateInstance(ConverterType, ConverterParameters) as JConverter; - } + public object[] ConverterParameters { get; init; } = converterParameters; + +public override JConverter? CreateConverter(type typeToConvert) +{ + return Activator.CreateInstance(ConverterType, ConverterParameters) as JConverter; +} } diff --git a/System/System/FlagsExtensions.cs b/System/System/FlagsExtensions.cs index c0ddfb8..541f84c 100644 --- a/System/System/FlagsExtensions.cs +++ b/System/System/FlagsExtensions.cs @@ -264,6 +264,6 @@ public static T[] GetFlags(this T flags) individualFlags.Add((T)Enum.ToObject(typeof(T), 0)); } - return [.. individualFlags]; + return [..individualFlags]; } }