Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Created November 22, 2013 17:00
Show Gist options
  • Save tugberkugurlu/7603251 to your computer and use it in GitHub Desktop.
Save tugberkugurlu/7603251 to your computer and use it in GitHub Desktop.
UriTemplate template = new UriTemplate("/foo/{bar}/baz?haz={haz}");
template.SetParameter("foo", 1234);
template.SetParameter("haz", new[] { "foo", "bar" });
string uri = template.Resolve();
@tugberkugurlu
Copy link
Author

This resolves to: /foo/baz?haz=foo,bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment