我想使用除http(s)://
之外的其他协议,特别是我想构建一个以vrchat://
开头的URL,但是由于某种原因,它总是会杀死第二个/
var url = "vrchat://".AppendPathSegment("launch");
if (!string.IsNullOrWhiteSpace(innerString)) {
url.SetQueryParam("id", innerString, true);
}
//url.SetQueryParam("ref", "vrchat.com");
Console.WriteLine("Connecting to {0}", url);
结果
Connecting to vrchat:/launch?id=wrld_b805006c-bec7-4179-958a-5a9351e48d5c