Im new to C# and am struggling to understand this: I'm trying to use one of the .NET 6.0 Uri constructors, namely this one:
Uri(Uri baseUri, string? relativeUri);
My code looks like this:
string baseUrl = "https://example.com";
string? route = null;
Uri test = new Uri(baseUrl, route);
But I get this error:
'route' may be null here.
Argument 2: cannot convert from string to bool