C# Program to Demonstrate the Use of Userescaped Property of URI Class

You are currently viewing C# Program to Demonstrate the Use of Userescaped Property of URI Class

C# program to demonstrate the use of UserEscaped property of Uri class

using System;

class UriExample
{
    //Entry point of Program
    static public void Main()
    {
        Uri domainUri1;

        domainUri1 = new Uri("http://user:[email protected]:8082/Article/CPrograms/");
       
        if (domainUri1.UserEscaped)
            Console.WriteLine("Uri string is completely escaped before the Uri instance was created");
        else
            Console.WriteLine("Uri string is not completely escaped before the Uri instance was created");
    }
}
Uri string is not completely escaped before the Uri instance was created
Press any key to continue . . .

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply