Created
March 10, 2015 00:06
-
-
Save pparadis/16923ad39b54e9862bf9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
var uri = new Uri(Env.ScriptArgs[0]); | |
Console.WriteLine("AbsolutePath - " + uri.AbsolutePath); | |
Console.WriteLine("AbsoluteUri - " + uri.AbsoluteUri); | |
Console.WriteLine("Authority - " + uri.Authority); | |
Console.WriteLine("DnsSafeHost - " + uri.DnsSafeHost); | |
Console.WriteLine("Fragment - " + uri.Fragment); | |
Console.WriteLine("Host - " + uri.Host); | |
Console.WriteLine("HostNameType - " + uri.HostNameType); | |
Console.WriteLine("IsAbsoluteUri - " + uri.IsAbsoluteUri); | |
Console.WriteLine("IsDefaultPort - " + uri.IsDefaultPort); | |
Console.WriteLine("IsFile - " + uri.IsFile); | |
Console.WriteLine("IsLoopback - " + uri.IsLoopback); | |
Console.WriteLine("IsUnc - " + uri.IsUnc); | |
Console.WriteLine("LocalPath - " + uri.LocalPath); | |
Console.WriteLine("PathAndQuery - " + uri.PathAndQuery); | |
Console.WriteLine("Port - " + uri.Port); | |
Console.WriteLine("Query - " + uri.Query); | |
Console.WriteLine("Scheme - " + uri.Scheme); | |
foreach(var segment in uri.Segments) | |
{ | |
Console.WriteLine("Segment - " + segment); | |
} | |
Console.WriteLine("UserInfo - " + uri.UserInfo); | |
Console.ReadKey(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment