What is the correct way to create Url and add port?
This is how I create URL but I do not find any Url method to add port.
new Url("https://www.myurl.com");
Should I just enter Port directly into the string like this?
new Url("https://www.myurl.com:9000");
I don't think there is a special way of doing it. It all depends on how you want to read it.
or
or even
should all be fine.
another way is to use string interpolation in the first example: