How to convert uri to string in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        Uri uri = new Uri("http://webshopy.com/index.php");
        
        string str = uri.ToString();
         
        Console.Write(str);
    }
}
 
 
 
 
/*
run:
 
http://webshopy.com/index.php
 
*/

 



answered Aug 18, 2023 by avibootz

Related questions

1 answer 89 views
89 views asked Aug 18, 2023 by avibootz
1 answer 116 views
1 answer 123 views
123 views asked Oct 13, 2023 by avibootz
2 answers 282 views
3 answers 221 views
221 views asked Mar 11, 2017 by avibootz
2 answers 285 views
...