Using the URI class you can do this:
var url = new Uri("your url");
More Related Contents:
- How can I parse JSON with C#?
- Identify if a string is a number
- How to escape braces (curly brackets) in a format string in .NET
- How do I parse a string with a decimal point to a double?
- Using C# regular expressions to remove HTML tags
- Parsing JSON using Json.net
- Get URL parameters from a string in .NET
- Which parsers are available for parsing C# code? [closed]
- JavaScriptSerializer.Deserialize – how to change field names
- How can I Convert HTML to Text in C#?
- Parsing FtpWebRequest ListDirectoryDetails line
- Read fixed width record from text file
- Problem parsing currency text to decimal type
- Pulling data from a webpage, parsing it for specific pieces, and displaying it
- Casting vs Converting an object toString, when object really is a string
- Best way to parse float?
- Why can’t DateTime.ParseExact() parse the AM/PM in “4/4/2010 4:20:00 PM” using “M’/’d’/’yyyy H’:’mm’:’ss’ ‘tt”
- How to create a new language for use in Visual Studio
- XML Parsing – Read a Simple XML File and Retrieve Values
- Lex/Yacc for C#?
- Improving/Fixing a Regex for C style block comments
- How to fix ill-formed HTML with HTML Agility Pack?
- What is the C# equivalent of NaN or IsNumeric?
- reading two integers in one line using C#
- How can I parse HTTP urls in C#?
- Parsing HTML Table in C#
- Best algorithm for evaluating a mathematical expression?
- What is the best way to parse large XML (size of 1GB) in C#?
- Are there any multipart/form-data parser in C# – (NO ASP)
- How to parse a boolean expression and load it into a class?