diff options
Diffstat (limited to 'src/DotNetOpenAuth.Messaging/Util.cs')
-rw-r--r-- | src/DotNetOpenAuth.Messaging/Util.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Messaging/Util.cs b/src/DotNetOpenAuth.Messaging/Util.cs index d6f8f23..6b63a36 100644 --- a/src/DotNetOpenAuth.Messaging/Util.cs +++ b/src/DotNetOpenAuth.Messaging/Util.cs @@ -209,7 +209,7 @@ namespace DotNetOpenAuth { /// <param name="obj">The object that may be serialized to string form.</param> /// <param name="toString">The method that will serialize the object if called upon.</param> public DelayedToString(T obj, Func<T, string> toString) { - Contract.Requires<ArgumentNullException>(toString != null); + Requires.NotNull(toString, "toString"); this.obj = obj; this.toString = toString; |