ClearCanvas.Dicom.DicomFragmentSequence.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
		public override bool Equals(object obj)
		{
			if (obj == null || GetType() != obj.GetType()) return false;

			DicomFragmentSequence sq = (DicomFragmentSequence) obj;

			if (sq.Count != this.Count)
				return false;

			for (int i = 0; i < Count; i++)
			{
				if (!_fragments[i].Equals(sq._fragments[i]))
					return false;
			}
			return true;
		}