diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-21 08:49:34 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-21 08:49:57 -0800 |
commit | d12a1615d8beb098111afc293bae4bf06f610a9b (patch) | |
tree | bbbbb6f20e5b37967f1a181bac0d23085aa4516c /src | |
parent | b268b8facc5b0aceb152254101da5acbe878fa14 (diff) | |
download | DotNetOpenAuth-d12a1615d8beb098111afc293bae4bf06f610a9b.zip DotNetOpenAuth-d12a1615d8beb098111afc293bae4bf06f610a9b.tar.gz DotNetOpenAuth-d12a1615d8beb098111afc293bae4bf06f610a9b.tar.bz2 |
Added missing contract.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/OpenId/Extensions/AttributeExchange/FetchRequest.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/OpenId/Extensions/AttributeExchange/FetchRequest.cs b/src/DotNetOpenAuth/OpenId/Extensions/AttributeExchange/FetchRequest.cs index a69e226..124a18c 100644 --- a/src/DotNetOpenAuth/OpenId/Extensions/AttributeExchange/FetchRequest.cs +++ b/src/DotNetOpenAuth/OpenId/Extensions/AttributeExchange/FetchRequest.cs @@ -8,6 +8,7 @@ namespace DotNetOpenAuth.OpenId.Extensions.AttributeExchange { using System; using System.Collections.Generic; using System.Collections.ObjectModel; + using System.Diagnostics.Contracts; using System.Globalization; using System.Linq; using DotNetOpenAuth.Messaging; @@ -67,7 +68,10 @@ namespace DotNetOpenAuth.OpenId.Extensions.AttributeExchange { /// <value>A collection where the keys are the attribute type URIs, and the value /// is all the attribute request details.</value> public KeyedCollection<string, AttributeRequest> Attributes { - get { return this.attributes; } + get { + Contract.Ensures(Contract.Result<KeyedCollection<string, AttributeRequest>>() != null); + return this.attributes; + } } /// <summary> |