Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Uri builder
//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; namespace Rextester { public class Program { public static void Main(string[] args) { #region First way string mvcpath = "localhost:8082"; string controller = "account"; string action = "confirmcode"; string userId = Guid.NewGuid().ToString(); string code = "4052"; Uri uri3 = new Uri(string.Format("http://{0}/{1}/{2}?userId={3}&code={4}", mvcpath, controller, action, userId, code)); #endregion #region Second way UriBuilder uriBuilder = new UriBuilder(); uriBuilder.Scheme = "http";/*here get the current protocol from httpcontextbase*/ uriBuilder.Host = "localhost"; uriBuilder.Path = "account/confirmcode"; uriBuilder.Port = 8082; uriBuilder.Query = string.Format("userId={0}&code={1}", userId, code); #endregion Console.WriteLine(uri3); Console.WriteLine(uriBuilder); } } }
run
|
edit
|
history
|
help
0
Move 2 ushort to 1 int
simultQ
Reflection constructors
UFC 271 LIVE STREAM FREE REDDIT
11
asxs sxsd
Aufgabe 1 J.S.
SKYIES
adxsadxcasxsd
jkb