6
What is the class Uri
and what is its purpose and where it should be used?
Cannot pass an object from it to a string variable see in the example:
String caminho = new Uri(@"c:\Windows");
Generates the following error:
Error 1 Cannot implicitly Convert type 'System.Uri' to 'string'
I read about which is used in strings, but I’m confused by that.
If not using class functionality
Uri
, it makes no sense to think about using it: rtfm– Berriel