public override int GetHashCode() { var hash = 23; hash = hash * 31 + MatchCase.GetHashCode(); hash = hash * 31 + MatchWholeWord.GetHashCode(); hash = hash * 31 + IsRegex.GetHashCode(); hash = hash * 31 + UseExcludeSettingsAndIgnoreFiles.GetHashCode(); if (Query != null) { hash = hash * 31 + Query.GetHashCode(); } if (WorkingDirectory != null) { hash = hash * 31 + WorkingDirectory.GetHashCode(); } if (Include != null) { hash = hash * 31 + Include.GetHashCode(); } if (Exclude != null) { hash = hash * 31 + Exclude.GetHashCode(); } return(hash); }
/*****************************************************************************************/ public XmlElement Write(XmlDocument document, string name) { XmlElement element = document.CreateElement(name); element.Attributes.Append(MCAD.XmlCommon.XmlTools.WriteStringAttribute(document, "is_regex", IsRegex.ToString())); element.InnerText = IsRegex ? MCAD.XmlCommon.XmlTools.EscapeTextForXml(Pattern) : Pattern; return(element); }