Format .NET projects with csharpier
This commit is contained in:
@@ -10,7 +10,8 @@ public class TimeOnlyConverter : JsonConverter<TimeOnly>
|
||||
public override TimeOnly Read(
|
||||
ref Utf8JsonReader reader,
|
||||
Type typeToConvert,
|
||||
JsonSerializerOptions options)
|
||||
JsonSerializerOptions options
|
||||
)
|
||||
{
|
||||
var value = reader.GetString();
|
||||
return TimeOnly.ParseExact(value!, serializationFormat);
|
||||
@@ -19,6 +20,6 @@ public class TimeOnlyConverter : JsonConverter<TimeOnly>
|
||||
public override void Write(
|
||||
Utf8JsonWriter writer,
|
||||
TimeOnly value,
|
||||
JsonSerializerOptions options)
|
||||
=> writer.WriteStringValue(value.ToString(serializationFormat));
|
||||
}
|
||||
JsonSerializerOptions options
|
||||
) => writer.WriteStringValue(value.ToString(serializationFormat));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user