示例#1
0
 public override int GetHashCode()
 {
     return(AccountID.GetHashCode() ^
            BucketID.GetHashCode() ^
            ContentLength.GetHashCode() ^
            ContentSHA1.GetHashCode() ^
            FileID.GetHashCode() ^
            FileName.GetHashCode() ^
            UploadTimeStamp.GetHashCode());
 }
示例#2
0
        public bool Equals(BackblazeB2UploadFileResult other)
        {
            if (EqualsPreamble(other) == false)
            {
                return(false);
            }

            return
                (AccountID.Equals(other.AccountID, StringComparison.Ordinal) &&
                 BucketID.Equals(other.BucketID, StringComparison.Ordinal) &&
                 ContentLength == other.ContentLength &&
                 ContentSHA1.Equals(other.ContentSHA1, StringComparison.Ordinal) &&
                 FileID.Equals(other.FileID, StringComparison.Ordinal) &&
                 FileName.Equals(other.FileName, StringComparison.Ordinal) &&
                 UploadTimeStamp == other.UploadTimeStamp);
        }