summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-05-28 16:19:12 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-05-28 16:19:12 -0700
commite3d49bafc685f026f228d7c514e2e39bd7b5e345 (patch)
tree92f6d949f648de4606397f26c3427247f7f4c6da /src
parent9335c7d1d81f3fe67cb7f1c375dbfc305789c4b3 (diff)
downloadDotNetOpenAuth-e3d49bafc685f026f228d7c514e2e39bd7b5e345.zip
DotNetOpenAuth-e3d49bafc685f026f228d7c514e2e39bd7b5e345.tar.gz
DotNetOpenAuth-e3d49bafc685f026f228d7c514e2e39bd7b5e345.tar.bz2
Fix FxCop message.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OpenId/UriIdentifier.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OpenId/UriIdentifier.cs b/src/DotNetOpenAuth/OpenId/UriIdentifier.cs
index 278ae37..639ff57 100644
--- a/src/DotNetOpenAuth/OpenId/UriIdentifier.cs
+++ b/src/DotNetOpenAuth/OpenId/UriIdentifier.cs
@@ -616,6 +616,21 @@ namespace DotNetOpenAuth.OpenId {
}
/// <summary>
+ /// Returns a hash code for this instance.
+ /// </summary>
+ /// <returns>
+ /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
+ /// </returns>
+ public override int GetHashCode() {
+ int hashCode = 0;
+ hashCode += StringComparer.OrdinalIgnoreCase.GetHashCode(this.Scheme);
+ hashCode += StringComparer.OrdinalIgnoreCase.GetHashCode(this.Authority);
+ hashCode += StringComparer.Ordinal.GetHashCode(this.Path);
+ hashCode += StringComparer.Ordinal.GetHashCode(this.Query);
+ return hashCode;
+ }
+
+ /// <summary>
/// Normalizes the characters that are escaped in the given URI path.
/// </summary>
/// <param name="path">The path to normalize.</param>