Skip to content

Commit 3e290c8

Browse files
author
Kevin Hellemun
committed
Using IsAssignableFrom to compare types. (#43)
1 parent 92cd8ee commit 3e290c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BunqSdk/Json/AnchorObjectConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist
5555

5656
public override bool CanConvert(Type objectType)
5757
{
58-
return objectType == typeof(IAnchorObjectInterface);
58+
return objectType.IsAssignableFrom(typeof(IAnchorObjectInterface));
5959
}
6060
}
6161
}

0 commit comments

Comments
 (0)