摘要:以下这行代码
Uri uri1 = new Uri("pack://application:,,,", UriKind.Absolute);
会导致UriFormatException。其Message是:Invalid URI: A port was expected because of there is a colon (':') present but the port could not be parsed.
Message的文法是有问题的:because of应该是because. 搜索的结果表明有这样错误用法的例子还是颇有一些的。...[
阅读全文]