public override int GetHashCode() { int hash = 17; int nameHash = Name?.GetHashCode() ?? 17; int dateHash = ModifyDate?.GetHashCode() ?? 17; int sizeHash = Size?.GetHashCode() ?? 17; int contentHash = MD5?.GetHashCode() ?? 17; unchecked { hash = hash * 17 + nameHash; hash = hash * 17 + dateHash; hash = hash * 17 + sizeHash; hash = hash * 17 + contentHash; } return(hash); }
public bool Equals(ContentItemPublicContract input) { if (input == null) { return(false); } return (( ContentId == input.ContentId || (ContentId.Equals(input.ContentId)) ) && ( CType == input.CType || (CType != null && CType.Equals(input.CType)) ) && ( CmsPath == input.CmsPath || (CmsPath != null && CmsPath.Equals(input.CmsPath)) ) && ( CreationDate == input.CreationDate || (CreationDate != null && CreationDate.Equals(input.CreationDate)) ) && ( ModifyDate == input.ModifyDate || (ModifyDate != null && ModifyDate.Equals(input.ModifyDate)) ) && ( AllowComments == input.AllowComments || (AllowComments != null && AllowComments.Equals(input.AllowComments)) ) && ( HasAgeGate == input.HasAgeGate || (HasAgeGate != null && HasAgeGate.Equals(input.HasAgeGate)) ) && ( MinimumAge == input.MinimumAge || (MinimumAge.Equals(input.MinimumAge)) ) && ( RatingImagePath == input.RatingImagePath || (RatingImagePath != null && RatingImagePath.Equals(input.RatingImagePath)) ) && ( Author == input.Author || (Author != null && Author.Equals(input.Author)) ) && ( AutoEnglishPropertyFallback == input.AutoEnglishPropertyFallback || (AutoEnglishPropertyFallback != null && AutoEnglishPropertyFallback.Equals(input.AutoEnglishPropertyFallback)) ) && ( Properties == input.Properties || (Properties != null && Properties.SequenceEqual(input.Properties)) ) && ( Representations == input.Representations || (Representations != null && Representations.SequenceEqual(input.Representations)) ) && ( Tags == input.Tags || (Tags != null && Tags.SequenceEqual(input.Tags)) ) && ( CommentSummary == input.CommentSummary || (CommentSummary != null && CommentSummary.Equals(input.CommentSummary)) )); }