Skip to content

Commit

Permalink
Rename AttributeCollection.GetValues to .GetValuesForKey
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaier committed Jul 19, 2013
1 parent 3f55cfb commit bfb3f39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/Views/LargeView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public override void SetParameters(AttributeCollection parameters)
{
base.SetParameters(parameters);

foreach (var v in parameters.GetValues("size")) {
foreach (var v in parameters.GetValuesForKey("size")) {
var min = 0L;
if (long.TryParse(v, out min) && min > 0) {
minSize = min * 1024 * 1024;
Expand Down
2 changes: 1 addition & 1 deletion util/AttributeCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public IEnumerator<Attribute> GetEnumerator()
return list.GetEnumerator();
}

public IEnumerable<string> GetValues(string key)
public IEnumerable<string> GetValuesForKey(string key)
{
return from i in list
where StringComparer.CurrentCultureIgnoreCase.Equals(i.Key, key)
Expand Down

0 comments on commit bfb3f39

Please sign in to comment.