summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-05-18 22:13:18 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-05-18 22:13:18 -0700
commit4f4e89cb5a8e2ba01ff40b41bd7bf1ddda689329 (patch)
tree765b165b02b6f3d10a1f53b44595a0eb283bc44a
parent203faf9106a55cc96b778fa65e8bc32b22a41fc4 (diff)
downloadDotNetOpenAuth-4f4e89cb5a8e2ba01ff40b41bd7bf1ddda689329.zip
DotNetOpenAuth-4f4e89cb5a8e2ba01ff40b41bd7bf1ddda689329.tar.gz
DotNetOpenAuth-4f4e89cb5a8e2ba01ff40b41bd7bf1ddda689329.tar.bz2
Removed Contracts.ForAll reference since it keeps a runtime dependency to Microsoft.Contracts.dll
-rw-r--r--src/DotNetOpenAuth/Messaging/Channel.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/Messaging/Channel.cs b/src/DotNetOpenAuth/Messaging/Channel.cs
index 1b9e8da..64c717e 100644
--- a/src/DotNetOpenAuth/Messaging/Channel.cs
+++ b/src/DotNetOpenAuth/Messaging/Channel.cs
@@ -973,7 +973,7 @@ namespace DotNetOpenAuth.Messaging {
/// <returns>The properly ordered list of elements.</returns>
/// <exception cref="ProtocolException">Thrown when the binding elements are incomplete or inconsistent with each other.</exception>
private static IEnumerable<IChannelBindingElement> ValidateAndPrepareBindingElements(IEnumerable<IChannelBindingElement> elements) {
- Contract.Requires(elements == null || Contract.ForAll(elements, e => e != null));
+ Contract.Requires(elements == null || elements.All(e => e != null));
Contract.Ensures(Contract.Result<IEnumerable<IChannelBindingElement>>() != null);
if (elements == null) {
return new IChannelBindingElement[0];