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.
This commit is contained in:
2026-01-16 10:58:26 +01:00
parent cdb52dc6fd
commit f4a921e268

View File

@@ -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)