public override bool Equals(object obj) { if (obj == null) { return(false); } HyphenationEvent event1 = (obj as HyphenationEvent); if (event1 == null) { return(false); } bool flag1 = false; bool flag2 = false; if (this.m_Country != null) { if ((event1.Country != null) && this.m_Country.Equals(event1.Country)) { flag1 = true; } } else if (event1.Country == null) { flag1 = true; } if (this.m_Language != null) { if ((event1.Language != null) && this.m_Language.Equals(event1.Language)) { flag2 = true; } } else if (event1.Language == null) { flag2 = true; } if (flag1) { return(flag2); } return(false); }
public void AddEvent(int type, string theCountry, string theLanguage) { HyphenationEvent event1 = new HyphenationEvent(theCountry, theLanguage); this.m_Events.Add(type, event1); }