public bool Equals(SearchResult p) { if (p == null) { return(false); } return(Traditional.Equals(p.Traditional) && PinyinNumbered.ToLower().Equals(p.PinyinNumbered.ToLower())); }
public override bool Equals(object obj) { if (obj == null) { return(false); } SearchResult p = obj as SearchResult; if (p == null) { return(false); } return(Traditional.Equals(p.Traditional) && PinyinNumbered.ToLower().Equals(p.PinyinNumbered.ToLower())); }