internal bool Equals(CompressedStack cs) { if (this.IsEmpty()) { return(cs.IsEmpty()); } if (cs.IsEmpty()) { return(false); } if (this._list.Count != cs._list.Count) { return(false); } for (int i = 0; i < this._list.Count; i++) { SecurityFrame securityFrame = (SecurityFrame)this._list[i]; SecurityFrame sf = (SecurityFrame)cs._list[i]; if (!securityFrame.Equals(sf)) { return(false); } } return(true); }
// internal stuff internal bool Equals(CompressedStack cs) { if (IsEmpty()) { return(cs.IsEmpty()); } if (cs.IsEmpty()) { return(false); } if (_list.Count != cs._list.Count) { return(false); } for (int i = 0; i < _list.Count; i++) { SecurityFrame sf1 = (SecurityFrame)_list [i]; SecurityFrame sf2 = (SecurityFrame)cs._list [i]; if (!sf1.Equals(sf2)) { return(false); } } return(true); }
// internal stuff internal bool Equals (CompressedStack cs) { if (IsEmpty ()) return cs.IsEmpty (); if (cs.IsEmpty ()) return false; if (_list.Count != cs._list.Count) return false; for (int i=0; i < _list.Count; i++) { SecurityFrame sf1 = (SecurityFrame) _list [i]; SecurityFrame sf2 = (SecurityFrame) cs._list [i]; if (!sf1.Equals (sf2)) return false; } return true; }