Skip to content

Commit

Permalink
Update DictionaryConverter.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Nov 25, 2021
1 parent c923762 commit 134c416
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Verify/Serialization/Converters/DictionaryConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Immutable;
using System.Collections.ObjectModel;
using System.Collections.ObjectModel;
using Newtonsoft.Json;
using VerifyTests;

Expand Down Expand Up @@ -43,7 +42,7 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s
var keyType = genericArguments.First();
var definition = type.GetGenericTypeDefinition();
if (definition == typeof(SortedDictionary<,>) ||
definition == typeof(ImmutableSortedDictionary<,>) )
definition.Name == "ImmutableSortedDictionary`2")
{
if (keyType == typeof(string))
{
Expand Down

0 comments on commit 134c416

Please sign in to comment.