public override bool Equals(object obj) { if (!(obj is DedupKey)) { return(false); } var other = (DedupKey)obj; return(Size == other.Size && LastModified == other.LastModified && Format.Equals(other.Format) && string.Equals(Digest, other.Digest)); }