Skip to content

Commit

Permalink
Add accessor to UriTemplateTable
Browse files Browse the repository at this point in the history
  • Loading branch information
darrelmiller committed Jan 19, 2016
1 parent 71f5a2a commit a9acd58
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/Tavis.UriTemplates.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Tavis.UriTemplates</id>
<version>0.6.6-beta4</version>
<version>0.6.6-beta5</version>
<authors>Darrel Miller</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<title>Tavis.UriTemplates</title>
Expand Down
11 changes: 11 additions & 0 deletions src/UriTemplates/UriTemplateTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ public TemplateMatch Match(Uri url)
return null;
}

public UriTemplate this[string key]
{ get
{
UriTemplate value;
if (_Templates.TryGetValue(key, out value))
{
return value;
} else {
return null;
}
}

}

Expand Down

0 comments on commit a9acd58

Please sign in to comment.