summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-01-20 09:28:30 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-01-20 09:28:30 -0800
commitb268b8facc5b0aceb152254101da5acbe878fa14 (patch)
tree7126d3a590dafe7d9d2cbb975ed0f34d3ec528b3 /src
parentcb001c7fcef80d981264c32caee113b097ab7e23 (diff)
downloadDotNetOpenAuth-b268b8facc5b0aceb152254101da5acbe878fa14.zip
DotNetOpenAuth-b268b8facc5b0aceb152254101da5acbe878fa14.tar.gz
DotNetOpenAuth-b268b8facc5b0aceb152254101da5acbe878fa14.tar.bz2
Added missing contract.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OpenId/Extensions/AttributeExchange/FetchResponse.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/OpenId/Extensions/AttributeExchange/FetchResponse.cs b/src/DotNetOpenAuth/OpenId/Extensions/AttributeExchange/FetchResponse.cs
index 73039d4..c6f8722 100644
--- a/src/DotNetOpenAuth/OpenId/Extensions/AttributeExchange/FetchResponse.cs
+++ b/src/DotNetOpenAuth/OpenId/Extensions/AttributeExchange/FetchResponse.cs
@@ -7,6 +7,7 @@
namespace DotNetOpenAuth.OpenId.Extensions.AttributeExchange {
using System;
using System.Collections.ObjectModel;
+ using System.Diagnostics.Contracts;
using System.Linq;
using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.OpenId.Messages;
@@ -52,7 +53,10 @@ namespace DotNetOpenAuth.OpenId.Extensions.AttributeExchange {
/// Gets a sequence of the attributes whose values are provided by the OpenID Provider.
/// </summary>
public KeyedCollection<string, AttributeValues> Attributes {
- get { return this.attributesProvided; }
+ get {
+ Contract.Ensures(Contract.Result<KeyedCollection<string, AttributeValues>>() != null);
+ return this.attributesProvided;
+ }
}
/// <summary>