@@ -34,7 +34,7 @@ public class Command
3434
3535 private readonly static JsonSerializerOptions s_jsonSerializerOptions = new ( )
3636 {
37- TypeInfoResolver = CommandSerializerContext . Default ,
37+ TypeInfoResolver = CommandJsonSerializerContext . Default ,
3838 Converters = { new ResponseValueJsonConverter ( ) }
3939 } ;
4040
@@ -135,20 +135,31 @@ private static Dictionary<string, object> ConvertParametersFromJson(string value
135135 }
136136 }
137137
138- [ JsonSerializable ( typeof ( Dictionary < string , object > ) ) ]
139- [ JsonSerializable ( typeof ( char [ ] ) ) ]
138+ // Built-in types
140139 [ JsonSerializable ( typeof ( bool ) ) ]
141- [ JsonSerializable ( typeof ( string ) ) ]
142- [ JsonSerializable ( typeof ( uint ) ) ]
140+ [ JsonSerializable ( typeof ( byte ) ) ]
141+ [ JsonSerializable ( typeof ( sbyte ) ) ]
142+ [ JsonSerializable ( typeof ( char ) ) ]
143+ [ JsonSerializable ( typeof ( decimal ) ) ]
144+ [ JsonSerializable ( typeof ( double ) ) ]
145+ [ JsonSerializable ( typeof ( float ) ) ]
143146 [ JsonSerializable ( typeof ( int ) ) ]
144- [ JsonSerializable ( typeof ( ulong ) ) ]
147+ [ JsonSerializable ( typeof ( uint ) ) ]
148+ [ JsonSerializable ( typeof ( nint ) ) ]
149+ [ JsonSerializable ( typeof ( nuint ) ) ]
145150 [ JsonSerializable ( typeof ( long ) ) ]
146- [ JsonSerializable ( typeof ( float ) ) ]
147- [ JsonSerializable ( typeof ( double ) ) ]
148- [ JsonSerializable ( typeof ( decimal ) ) ]
151+ [ JsonSerializable ( typeof ( ulong ) ) ]
152+ [ JsonSerializable ( typeof ( short ) ) ]
153+ [ JsonSerializable ( typeof ( ushort ) ) ]
154+
155+ [ JsonSerializable ( typeof ( string ) ) ]
156+
157+ // Selenium WebDriver types
158+ [ JsonSerializable ( typeof ( char [ ] ) ) ]
159+ [ JsonSerializable ( typeof ( Dictionary < string , object > ) ) ]
149160 [ JsonSerializable ( typeof ( Cookie ) ) ]
150161 [ JsonSerializable ( typeof ( Proxy ) ) ]
151- internal partial class CommandSerializerContext : JsonSerializerContext
162+ internal partial class CommandJsonSerializerContext : JsonSerializerContext
152163 {
153164
154165 }
0 commit comments