(Choose 1 answer)
class Program{
static void Main(string[] args){
Uri info = new Uri("
http://www.domain.com:80/info?id=123#fragment");Uri page = new Uri("
http://www.domain.com/info/page.html");Console.WriteLine($"Default HTTP port: {page.Port}");
A. Compile-time error
Console.WriteLine($"IsBaseOf: {info.IsBaseOf(page)}");
B. Default HTTP port: 80
IsBaseOf: True
Console.ReadKey();
}
C. Default HTTP port: 80
IsBaseOf: False
Which one of the following is the output of the above code?
D. An run-time exception will be thrown
}
Exit 42