public override int GetHashCode()
        {
            int hashCode = 1488358615;

            if (Context != null)
            {
                hashCode += Context.GetHashCode();
            }

            if (Errors != null)
            {
                hashCode += Errors.GetHashCode();
            }

            if (Changes != null)
            {
                hashCode += Changes.GetHashCode();
            }

            if (Cursor != null)
            {
                hashCode += Cursor.GetHashCode();
            }

            return(hashCode);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hashCode = 1934758425;

            if (IdempotencyKey != null)
            {
                hashCode += IdempotencyKey.GetHashCode();
            }

            if (Changes != null)
            {
                hashCode += Changes.GetHashCode();
            }

            if (IgnoreUnchangedCounts != null)
            {
                hashCode += IgnoreUnchangedCounts.GetHashCode();
            }

            return(hashCode);
        }
コード例 #3
0
ファイル: CommitModel.cs プロジェクト: thedillonb/GitHubSharp
 public override int GetHashCode()
 {
     unchecked
     {
         return((Filename != null ? Filename.GetHashCode() : 0) ^ (Additions != null ? Additions.GetHashCode() : 0) ^ (Deletions != null ? Deletions.GetHashCode() : 0) ^ (Changes != null ? Changes.GetHashCode() : 0) ^ (Status != null ? Status.GetHashCode() : 0) ^ (RawUrl != null ? RawUrl.GetHashCode() : 0) ^ (BlobUrl != null ? BlobUrl.GetHashCode() : 0) ^ (Patch != null ? Patch.GetHashCode() : 0) ^ (ContentsUrl != null ? ContentsUrl.GetHashCode() : 0));
     }
 }