From e4fa40367aa5760dc629604f8f63a1fb69ac937b Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com> Date: Fri, 17 Oct 2025 20:58:04 +0300 Subject: [PATCH] [dotnet] [bidi] Remove unnecessary command type info --- dotnet/src/webdriver/BiDi/Communication/Command.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dotnet/src/webdriver/BiDi/Communication/Command.cs b/dotnet/src/webdriver/BiDi/Communication/Command.cs index d84f99400f526..5c15c6e7a7400 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Command.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Command.cs @@ -24,10 +24,9 @@ namespace OpenQA.Selenium.BiDi.Communication; public abstract class Command { - protected Command(string method, Type resultType) + protected Command(string method) { Method = method; - ResultType = resultType; } [JsonPropertyOrder(1)] @@ -35,12 +34,9 @@ protected Command(string method, Type resultType) [JsonPropertyOrder(0)] public long Id { get; internal set; } - - [JsonIgnore] - public Type ResultType { get; } } -internal abstract class Command(TParameters @params, string method) : Command(method, typeof(TResult)) +internal abstract class Command(TParameters @params, string method) : Command(method) where TParameters : Parameters where TResult : EmptyResult {