public override bool Equals(object obj) { if (obj == null) { return(false); } MissedCharacterEvent event1 = (obj as MissedCharacterEvent); if (event1 == null) { return(false); } bool flag1 = this.m_Character.Equals(event1.Character); bool flag2 = false; if (this.m_FontName != null) { if ((event1.FontName != null) && this.m_FontName.Equals(event1.FontName)) { flag2 = true; } } else if (event1.FontName == null) { flag2 = true; } if (flag1) { return(flag2); } return(false); }