Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
UriParts
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Web; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here Uri uri = new Uri("http://insights.bersin.com/askexperts/?faqid=3441"); //Uri uri = new Uri("https://talentone.Bersin.com/Search/?Idx=research&search=test"); Console.WriteLine("Scheme : " + uri.Scheme); Console.WriteLine("Authority : " + HttpUtility.UrlDecode(uri.Authority)); Console.WriteLine("AbsolutPath : " + uri.AbsolutePath); Console.WriteLine("Query : " + HttpUtility.UrlDecode(uri.Query)); Console.WriteLine("Query : " + uri.Query); Console.WriteLine("AbsoluteUri : " + uri.AbsoluteUri); //Console.WriteLine("RawUrl : " + HttpContext.Current.Request.RawUrl); string t = uri.AbsolutePath.ToLower().Replace("/playbooksolutions/", "/solutions/").Replace("/solution/", "/"); Console.WriteLine(t); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Vajdalinky
zmeika
f
Game v 1.0
Hash autoryzujący
Lotto unieke getallen
static, private, public constructor in C#
Ejemplos polimorfismos con interfaces y posibles usos sencillos c#
BCD16BitTest
Testing 001
Please log in to post a comment.