public override int GetHashCode() { var hashCode = -571848642; hashCode = hashCode * -1521134295 + EqualityComparer <ObservableCollection <TreeNode <TElement> > > .Default.GetHashCode(Children); hashCode = hashCode * -1521134295 + EqualityComparer <TElement> .Default.GetHashCode(Value); hashCode = hashCode * -1521134295 + EqualityComparer <TreeNode <TElement> > .Default.GetHashCode(Parent); hashCode = hashCode * -1521134295 + HasChildren.GetHashCode(); hashCode = hashCode * -1521134295 + IsMostLeftChild.GetHashCode(); hashCode = hashCode * -1521134295 + IsMostRightChild.GetHashCode(); hashCode = hashCode * -1521134295 + Count.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (HasCampaign) { hash ^= Campaign.GetHashCode(); } if (HasCategory) { hash ^= Category.GetHashCode(); } if (HasLanguageCode) { hash ^= LanguageCode.GetHashCode(); } if (HasDomain) { hash ^= Domain.GetHashCode(); } if (HasCoverageFraction) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CoverageFraction); } if (HasCategoryRank) { hash ^= CategoryRank.GetHashCode(); } if (HasHasChildren) { hash ^= HasChildren.GetHashCode(); } if (HasRecommendedCpcBidMicros) { hash ^= RecommendedCpcBidMicros.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void WriteXml(System.Xml.XmlWriter writer) { writer.WriteAttributeString(TreeAttributes.nodeID.ToString(), this.m_nodeID); writer.WriteAttributeString(TreeAttributes.text.ToString(), this.m_text); writer.WriteAttributeString(TreeAttributes.iconClass.ToString(), this.m_iconClass); writer.WriteAttributeString(TreeAttributes.action.ToString(), this.m_action); writer.WriteAttributeString(TreeAttributes.menu.ToString(), (this.m_menu != null && this.m_menu.Count > 0 ? umbraco.BusinessLogic.Actions.Action.ToString(this.m_menu) : "")); writer.WriteAttributeString(TreeAttributes.rootSrc.ToString(), this.m_rootSrc); writer.WriteAttributeString(TreeAttributes.src.ToString(), this.m_src); writer.WriteAttributeString(TreeAttributes.icon.ToString(), this.m_icon); writer.WriteAttributeString(TreeAttributes.openIcon.ToString(), this.m_openIcon); writer.WriteAttributeString(TreeAttributes.nodeType.ToString(), this.m_nodeType); writer.WriteAttributeString(TreeAttributes.hasChildren.ToString(), HasChildren.ToString().ToLower()); if (m_notPublished.HasValue) { writer.WriteAttributeString(TreeAttributes.notPublished.ToString(), this.m_notPublished.Value.ToString().ToLower()); } if (m_isProtected.HasValue) { writer.WriteAttributeString(TreeAttributes.isProtected.ToString(), this.m_isProtected.Value.ToString().ToLower()); } }
public override void OnDeleteFromDb() { HasChildren.ThrowIfTrue(ErrorCodes.ContainerHasToBeEmpty); ContainerLogger.ClearLog(null); base.OnDeleteFromDb(); }