From f4a921e268ce6c461c265a46dece4445a01284c8 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 16 Jan 2026 10:58:26 +0100 Subject: [PATCH] Adjust BuildQuery param types for .NET Framework compatibility Use conditional compilation to set BuildQuery's tuple Value type to object for .NET Framework and object? for other targets, ensuring compatibility with nullable reference types across different .NET versions. --- src/ReC.Client/ReCClient.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ReC.Client/ReCClient.cs b/src/ReC.Client/ReCClient.cs index c985668..923e5ac 100644 --- a/src/ReC.Client/ReCClient.cs +++ b/src/ReC.Client/ReCClient.cs @@ -33,7 +33,11 @@ namespace ReC.Client _http = httpClientFactory.CreateClient(ClientName); } +#if NETFRAMEWORK private static string BuildQuery(params (string Key, object Value)[] parameters) +#else + private static string BuildQuery(params (string Key, object? Value)[] parameters) +#endif { var parts = parameters .Where(p => p.Value != null)