AnyClone
AnyClone copied to clipboard
clone System.Text.Json.Serialization.JsonSerializerOptions throws exception.
trying to clone JsonSerializerOptions in dotnet core 3 throws exception.
JsonNamingPolicy.CamelCase is not an enum but some crazy object.
using System.Text.Json.Serialization;
public void ShouldCloneJsonSerializationOptions()
{
var jsonSerializerOptions = new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
};
JsonSerializerOptions clone = jsonSerializerOptions.Clone();
clone.PropertyNamingPolicy.ShouldBe(JsonNamingPolicy.CamelCase);
}
This is being looked at today, I'll follow up when the fix is merged
@replaysMike Any update on this and https://github.com/TimeWarpEngineering/blazor-state/issues/148
I'm pushing out another update to Blazor-State today.