summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs')
-rw-r--r--src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs b/src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs
index ee5c421..9236681 100644
--- a/src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs
+++ b/src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs
@@ -13,6 +13,7 @@ namespace DotNetOpenAuth.OAuth {
using System.Linq;
using System.Text;
using DotNetOpenAuth.Messaging;
+ using Validation;
/// <summary>
/// An enumeration of the OAuth protocol versions supported by this library.
@@ -141,7 +142,7 @@ namespace DotNetOpenAuth.OAuth {
/// <returns>A matching <see cref="Protocol"/> instance.</returns>
internal static Protocol Lookup(Version version) {
Requires.NotNull(version, "version");
- Requires.InRange(AllVersions.Any(p => p.Version == version), "version");
+ Requires.Range(AllVersions.Any(p => p.Version == version), "version");
return AllVersions.First(p => p.Version == version);
}
}