summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Messaging/Messaging/KeyedCollectionDelegate.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.Messaging/Messaging/KeyedCollectionDelegate.cs')
-rw-r--r--src/DotNetOpenAuth.Messaging/Messaging/KeyedCollectionDelegate.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Messaging/Messaging/KeyedCollectionDelegate.cs b/src/DotNetOpenAuth.Messaging/Messaging/KeyedCollectionDelegate.cs
index 5555f9c..c0a08df 100644
--- a/src/DotNetOpenAuth.Messaging/Messaging/KeyedCollectionDelegate.cs
+++ b/src/DotNetOpenAuth.Messaging/Messaging/KeyedCollectionDelegate.cs
@@ -27,7 +27,7 @@ namespace DotNetOpenAuth.Messaging {
/// </summary>
/// <param name="getKeyForItemDelegate">The delegate that gets the key for a given item.</param>
internal KeyedCollectionDelegate(Func<TItem, TKey> getKeyForItemDelegate) {
- Contract.Requires<ArgumentNullException>(getKeyForItemDelegate != null);
+ Requires.NotNull(getKeyForItemDelegate, "getKeyForItemDelegate");
this.getKeyForItemDelegate = getKeyForItemDelegate;
}