public bool Equals(DbChapter?other) { return(other != null && Id.Equals(other.Id) && Level == other.Level && NameId.Equals(other.NameId) && DescriptionId.Equals(other.DescriptionId) && Pages.SequenceEqual(other.Pages) && PictureId == other.PictureId); }
public override int GetHashCode() { unchecked { int result = Id; result = (result * 397) ^ (Name != null ? Name.GetHashCode() : 0); result = (result * 397) ^ (FullName != null ? FullName.GetHashCode() : 0); result = (result * 397) ^ (DescriptionId != null ? DescriptionId.GetHashCode() : 0); result = (result * 397) ^ (Owner != null ? Owner.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { int hash = 1; if (ItemId != 0L) { hash ^= ItemId.GetHashCode(); } if (DescriptionId != 0) { hash ^= DescriptionId.GetHashCode(); } if (ImageId.Length != 0) { hash ^= ImageId.GetHashCode(); } if (U4 != 0) { hash ^= U4.GetHashCode(); } if (StoryQuestId != 0L) { hash ^= StoryQuestId.GetHashCode(); } if (TrainerId != 0L) { hash ^= TrainerId.GetHashCode(); } if (ScheduleId.Length != 0) { hash ^= ScheduleId.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }