public override bool Equals(object obj) { if (obj is StoreInfo && session_ != null) { StoreInfo st = obj as StoreInfo; if (session_ != st.session_) { return(false); } return(session_.CompareEntryIDs(EntryId, st.EntryId)); } return(base.Equals(obj)); }