Skip to content

Commit e4fa403

Browse files
committed
[dotnet] [bidi] Remove unnecessary command type info
1 parent d05680d commit e4fa403

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

dotnet/src/webdriver/BiDi/Communication/Command.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,19 @@ namespace OpenQA.Selenium.BiDi.Communication;
2424

2525
public abstract class Command
2626
{
27-
protected Command(string method, Type resultType)
27+
protected Command(string method)
2828
{
2929
Method = method;
30-
ResultType = resultType;
3130
}
3231

3332
[JsonPropertyOrder(1)]
3433
public string Method { get; }
3534

3635
[JsonPropertyOrder(0)]
3736
public long Id { get; internal set; }
38-
39-
[JsonIgnore]
40-
public Type ResultType { get; }
4137
}
4238

43-
internal abstract class Command<TParameters, TResult>(TParameters @params, string method) : Command(method, typeof(TResult))
39+
internal abstract class Command<TParameters, TResult>(TParameters @params, string method) : Command(method)
4440
where TParameters : Parameters
4541
where TResult : EmptyResult
4642
{

0 commit comments

Comments
 (0)