Skip to content

Instantly share code, notes, and snippets.

View jdluzen's full-sized avatar

Joe Dluzen jdluzen

View GitHub Profile
@jdluzen
jdluzen / ParseRouteParameters.cs
Created February 2, 2021 01:49
Parse the route attribute names out of route templates e.g. /main/view/{id}
private static IEnumerable<string> GetRouteParameters(RouteAttribute route)
{
for (int i = 0; i < route.Template.Length; i++)
{
if (route.Template[i] != '{')
continue;
i++;
for (int j = i; j < route.Template.Length; j++)
{
if (route.Template[j] != '}')
@jdluzen
jdluzen / proof.txt
Created September 18, 2019 13:58
Keybase
### Keybase proof
I hereby claim:
* I am jdluzen on github.
* I am jdluzen (https://keybase.io/jdluzen) on keybase.
* I have a public key ASD5TnJc-9sUyL-TBKeMYLO3roHEZXPLn_P1yExXX4C7Ugo
To claim this, I am signing this object: