Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85de730

Browse files
committed
Fix the KeyValuePairConverter not to clain it can convert System.Object
Fixes UiPath#37
1 parent a90d4c3 commit 85de730

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

UiPath.PowerShell/Util/KeyValuePairConverter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using Newtonsoft.Json.Linq;
33
using System;
44
using System.Collections.Generic;
5-
using System.Diagnostics;
65
using UiPath.Web.Client20181.Models;
76

87
namespace UiPath.PowerShell.Util
@@ -11,7 +10,7 @@ internal class KeyValuePairConverter: JsonConverter
1110
{
1211
public override bool CanConvert(Type objectType)
1312
{
14-
return objectType.IsAssignableFrom(typeof(ODataResponseListKeyValuePairStringString));
13+
return typeof(ODataResponseListKeyValuePairStringString).IsAssignableFrom(objectType);
1514
}
1615

1716
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)

0 commit comments

Comments
 (0)