com.calitha.commons.IntegerList.Equals C# (CSharp) Method

Equals() public method

Determines whether the specified Object is equal to the current Object.
public Equals ( object obj ) : bool
obj object The Object to compare with the current Object.
return bool
		public override bool Equals(object obj)
		{
			if (! (obj is IntegerList))
				return false;
			IntegerList otherList = (IntegerList)obj;
			if (otherList.Count != this.Count)
				return false;
			for (int i=0; i < this.list.Count; i++)
			{
				if (this[i] != otherList[i])
					return false;
			}
			return true;
		}

Same methods

IntegerList::Equals ( object objA, object objB ) : bool