Skip to content

Instantly share code, notes, and snippets.

@djcsdy
Created September 29, 2011 10:38
Show Gist options
  • Save djcsdy/1250494 to your computer and use it in GitHub Desktop.
Save djcsdy/1250494 to your computer and use it in GitHub Desktop.
Microsoft are imbeciles
var uriBuilder = new UriBuilder();
uriBuilder.Query = "foo=bar";
Console.WriteLine(uriBuilder.Query); // prints "?foo=bar"
uriBuilder.Query = uriBuilder.Query;
Console.WriteLine(uriBuilder.Query); // prints "??foo=bar"
// Someone at Microsoft needs a swift kick in the balls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment